[SQL] arrays in PostgreSQL

2000-12-14 Thread Kovacs Zoltan Sandor
> Is it possible to return an array from a plpgsql function?? AICR, it is impossible. In addition, it's not suggested using arrays at all: the array based logic is foreign from SQL solutions. In fact PostgreSQL doesn't have a good array support. My friend who built our logic data model, said that

[SQL] to_char() causes backend to close connection

2000-12-14 Thread Kovacs Zoltan Sandor
Hi, this query gives different strange results: select to_char(now()::abstime,'YYMMDDHH24MI'); I get e.g. a "backend closed the channel unexpectedly..." error with successful or failed resetting attempt (indeterministic) or ERROR: to_char/to_number(): not unique decimal poit or NOTICE: Por

Re: [SQL] to_char() causes backend to close connection

2000-12-14 Thread Karel Zak
On Thu, 14 Dec 2000, Kovacs Zoltan Sandor wrote: > Hi, this query gives different strange results: > > select to_char(now()::abstime,'YYMMDDHH24MI'); the result: ERROR: to_char/to_number(): not unique decimal poit is right, because we have two to_char(): to_char(int, text)

Re: [SQL] How to represent a tree-structure in a relational database

2000-12-14 Thread Tulassay Zsolt
There actually is a model of tree structures in SQL databases which is different from those mentioned earlier in that it represents the tree as nested sets (ie. nodes are subsets of parent sets (parent nodes)). There is a huge advantage in this model as it eliminates the need for recursion. For

Re: [SQL] Strange slow behavior in backend

2000-12-14 Thread Jan Wieck
Tom Lane wrote: > Kyle <[EMAIL PROTECTED]> writes: > > This worked great until I put a real big file in (about 5M). Then, when > > I tried to fetch the file, it seemed really slow (about 60 seconds). I > > tried reassembling the file in the frontend instead and my time dropped > > to about 6 sec

Re: [SQL] Strange slow behavior in backend

2000-12-14 Thread Jan Wieck
Kyle wrote: > I'm using 7.0.1 with a TCL frontend. > > I have a schema that splits large files into tuple-sized bites and > stores them in a table. This was done before TOAST in order to store > large files. > > I have a backend TCL function that re-assembles the file like this: > > -- Fetch the

Re: [SQL] How to represent a tree-structure in a relational database

2000-12-14 Thread hubert depesz lubaczewski
somebody already showed table structure, but i'll ad some more code to this: table: CREATE TABLE groups ( id INT4 NOT NULL DEFAULT NEXTVAL('groups_seq'), parent_idINT4 NOT NULL DEFAULT 0, name TEXT NOT NULL DEFAULT '', active BOOL NOT NULL DEFA

Re: [SQL] to_char() causes backend to close connection

2000-12-14 Thread Kovacs Zoltan Sandor
> A problem (IMHO it's not problem) with 'now()::abstime' is in 7.1 too. > But why you not use directly now()? My aim is to get this format for the time '5 minutes ago'. So I need something like select to_char(now()-'5 minutes','YYMMDDHH24MI') but this doesn't work due to the missing type conv

RE: [SQL] to_char() causes backend to close connection

2000-12-14 Thread Trewern, Ben
Title: RE: [SQL] to_char() causes backend to close connection select to_char(now()-'5 minutes'::interval,'YYMMDDHH24MI') seems to work Ben > -Original Message- > From: Kovacs Zoltan Sandor [mailto:[EMAIL PROTECTED]] > Sent: 14 December 2000 15:49 > To: Karel Zak > Cc: [EMAIL PROTEC

[SQL] pg_control error!

2000-12-14 Thread rocael
Hi all! I'm using postgresql7.0.2 I did ipcclean and then pg_ctl stop then I tried to start up again the DB server as usual nohup postmaster -i > pgserver.log 2>&1 & I got this error: FATAL 2: Read("/usr/local/pgsql/data/pg_control") failed:2 FATAL 2: Read("/usr/local/pgsql/data/pg_control") f

[SQL] Howto compile fti.c

2000-12-14 Thread Franklin Vera
I can´t compile fulltext index, i need step by step explain about this process and Where are fti.so file? please help me to implement this feature. I have Postgresql 7.0 in linux red-hat Thanks

[SQL] Compiling "C" Functions

2000-12-14 Thread Tulio Oliveira
Hi, ALL This is my first time in this list... Sorry by any inconvenience I need a TRIGGER thats runs whith POSTGRES permissions. I´ll give an ODBC connection for programmers that don´t need to know the "rules" of my Data Base. So, I´ll creata an "fake" table, and with a BEFORE INSERT TRIG

[SQL] pg_control error!

2000-12-14 Thread rocael
Hi all! I'm using postgresql7.0.2 I did ipcclean and then pg_ctl stop then I tried to start up again the DB server as usual nohup postmaster -i > pgserver.log 2>&1 & I got this error: FATAL 2: Read("/usr/local/pgsql/data/pg_control") failed:2 FATAL 2: Read("/usr/local/pgsql/data/pg_control") f

Re: [SQL] How to represent a tree-structure in a relationaldatabase

2000-12-14 Thread Alvar Freude
Hi, miguel sofer wrote: > > I once started writing a small paper on this subject; it is still in a > rather preliminary state. > > You can download the draft (and some ill documented code, 53kB) from > http://www.utdt.edu/~mig/sql-trees ah, this looks very, very nice! on page 5ff you describ

Re: [SQL] How to represent a tree-structure in a relationaldatabase

2000-12-14 Thread Alvar Freude
Hi, > > > I once started writing a small paper on this subject; it is still in a > > rather preliminary state. > > > > You can download the draft (and some ill documented code, 53kB) from > > http://www.utdt.edu/~mig/sql-trees > i guess, with base 160 encoding there might be a problem: if post

Re: Secure Messaging Non-Delivery Report: Re: [SQL] How to represent a tree-structure in a relationaldatabase

2000-12-14 Thread Alvar Freude
Hi Security-Master, [EMAIL PROTECTED] wrote: > > When [EMAIL PROTECTED] sent e-mail to [EMAIL PROTECTED] >(1/255/1) > The message was blocked by TFS Secure Messaging > When [EMAIL PROTECTED] sent e-mail to [EMAIL PROTECTED] >(1/255/1) > The message was blocked by TFS Secure Messaging please c

Re: Secure Messaging Non-Delivery Report: Re: [SQL] How to represent a tree-structure in a relationaldatabase

2000-12-14 Thread Tom Lane
As of a few moments ago, Dana Reed is an ex-subscriber to pgsql-general. Evidently he/she is about to be an ex-subscriber to pgsql-sql as well. Most mailing list admins take a very dim view of mail software that sends bounces to the original author of a mailing-list message, rather than to the ma

Re: Secure Messaging Non-Delivery Report: Re: [SQL] How to representa tree-structure in a relationaldatabase

2000-12-14 Thread The Hermit Hacker
oh, wait, you didn't want me to remove dana from all lists? :) if offensive on one, I figure its offensive on all ... saves time, no? On Thu, 14 Dec 2000, Tom Lane wrote: > As of a few moments ago, Dana Reed is an ex-subscriber to pgsql-general. > Evidently he/she is about to be an ex-subscrib

Re: Secure Messaging Non-Delivery Report: Re: [SQL] How to representa tree-structure in a relationaldatabase

2000-12-14 Thread Alvar Freude
Hi, The Hermit Hacker schrieb: > > oh, wait, you didn't want me to remove dana from all lists? :) if > offensive on one, I figure its offensive on all ... saves time, no? hmm, perhaps the admin of him give OK to receive mails in future ... ;-) Ciao Alvar -- Alvar C.H. Freude | [EMAIL P