Re: [GENERAL] plperl crashing backend

2000-09-03 Thread Michael Blakeley
At 8:07 PM -0400 9/3/2000, Tom Lane wrote: >Michael Blakeley <[EMAIL PROTECTED]> writes: >> I'm running postgresql 7.0.1 on Solaris 2.6, with the latest patch >> cluster. I've compiled pg and Perl 5.6.0 with gcc 2.9.5-2. > >Hmm. Your trace shows >

[GENERAL] plperl crashing backend

2000-09-03 Thread Michael Blakeley
I'm running postgresql 7.0.1 on Solaris 2.6, with the latest patch cluster. I've compiled pg and Perl 5.6.0 with gcc 2.9.5-2. I want to do some work with plperl fuctions, for text parsing. So I run psql and do: db=# CREATE FUNCTION testfunction(VARCHAR) RETURNS VARCHAR AS db-# 'return "foo"' L

[GENERAL] Re: Stripping a prefix

2000-08-26 Thread Michael Blakeley
> Date: Fri, 25 Aug 2000 09:35:43 -0600 > From: Bruce Guenter <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] > Subject: Stripping a prefix > > Is there a function available to strip a string from the start of a > string? trim and ltrim can strip any occurrence of a set of characters > from th

Re: [GENERAL] regex back-references?

2000-08-22 Thread Michael Blakeley
At 4:26 PM -0400 8/21/2000, Tom Lane wrote: >Michael Blakeley <[EMAIL PROTECTED]> writes: >> Do I need to tell postgres to rebuild pg_language, perhaps? > >See the createlang utility script. PL languages aren't installed >by default (due to possibly-overzealous con

Re: [GENERAL] regex back-references?

2000-08-21 Thread Michael Blakeley
At 1:30 AM -0400 8/21/2000, Tom Lane wrote: >Michael Blakeley <[EMAIL PROTECTED]> writes: >> Does postgresql support regex back-references? > >There's no such function at the SQL level, AFAIR. > >I'd recommend writing a function in either plperl or pltcl,

Re: [GENERAL] interval questions

2000-06-01 Thread Michael Blakeley
At 10:21 PM -0500 6/1/2000, Ed Loehr wrote: >Michael Blakeley wrote: >> >> CREATE TABLE EVENTS( stamp date, id varchar(16), event varchar(128) ); >> >> I'm trying to find the average age of the records. I've gotten as far as: >> SELECT DISTINC

[GENERAL] interval questions

2000-06-01 Thread Michael Blakeley
I hope someone on the list can suggest a solution for me - given a table like CREATE TABLE EVENTS( stamp date, id varchar(16), event varchar(128) ); I'm trying to find the average age of the records. I've gotten as far as: SELECT DISTINCT ON(id) age(stamp) FROM EVENTS; Now, I need the D

[GENERAL] group by week (ww), plus -S performance

2000-05-28 Thread Michael Blakeley
I thought I'd pass along a work-around I came up with for the limits in 'ww' support (7.0 final). Maybe this would be a useful example for the docs? They're a little lean on date/time examples, IMO. So is the new book. Task: Select a count of records from a table, grouped by the week of the r