[ADMIN] Last_Inserted Value

2002-03-27 Thread Andre Schubert
Hi all, i have a little question on getting the last inserted value from a table. Lets say i have a transaction which does the following. insert into foo values(1); insert into bar values(2); insert into foobar values(3); All three tables use the same sequence to increment their id. I want to

[ADMIN] pg_dump and views

2002-03-27 Thread Marc Mitchell
I've run into what I think is a problem with pg_dump. I'm running 7.1.2 under RedHat. I issue a schema-only pg_dump as follows: pg_dump -c -s -S postgres me|gzip> /u0/prod/sql/backups/$YEAR.$MONTH.$DAY.schema.gz Everything seems to run fine. However, upon restore no views were seen. Investiga

[ADMIN] ERROR: plpgsql: cache lookup for proc 17911 failed

2002-03-27 Thread Richard Emberson
I created a function with iscachable, ' LANGUAGE 'plpgsql' WITH (iscachable); I then call the function. Then I decide to change the return type of the function so I first drop the function, then change the return type. The next time I attempt to execute the function I get: ERROR: plpgsql: cac

Re: [ADMIN] timestamp in 7.2

2002-03-27 Thread Stephan Szabo
On Wed, 27 Mar 2002 [EMAIL PROTECTED] wrote: > Hello all. > > I'v migrated my data to 7.2. > Now I'm testing aplications, but looks like timestamp function in > postgres is broken: > klienti=# select date(now()); > date > > 2002-03-27 > (1 row) > > klienti=# select timestamp(da

[ADMIN] pg_restore

2002-03-27 Thread Jodi Kanter
I have an empty database that we recreated from scratch in order to make some column changes. I would like to restore the data that was in the original database. Will it work given that their are some new fields that did not exist before? Am I correct in that I cannot do this from pg_restore

Re: [ADMIN] join vs. IN statement

2002-03-27 Thread Joe Conway
Jodi Kanter wrote: > We are currently trying to determine if their is a performance > difference with postgres in using an IN statement in the where clause > vs. using a join between tables. > > Is there any published documentation or someone with personal experience > that can answer this que

[ADMIN] join vs. IN statement

2002-03-27 Thread Jodi Kanter
We are currently trying to determine if their is a performance difference with postgres in using an IN statement in the where clause vs. using a join between tables. Is there any published documentation or someone with personal experience that can answer this question? We are adding sessioni

Re: [ADMIN] timestamp in 7.2

2002-03-27 Thread Karel Zak
On Wed, Mar 27, 2002 at 12:55:54PM +0200, [EMAIL PROTECTED] wrote: > Hello all. > > I'v migrated my data to 7.2. > Now I'm testing aplications, but looks like timestamp function in > postgres is broken: > klienti=# select date(now()); > date > > 2002-03-27 > (1 row) > > klien

[ADMIN] timestamp in 7.2

2002-03-27 Thread mark
Hello all. I'v migrated my data to 7.2. Now I'm testing aplications, but looks like timestamp function in postgres is broken: klienti=# select date(now()); date 2002-03-27 (1 row) klienti=# select timestamp(date(now())); ERROR: parser: parse error at or near "date" I need t