Re: Re: postgres TODO

From: Philip Warner <pjw(at)rhyme(dot)com(dot)au>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>, XosÉ Vázquez <xose(at)wanadoo(dot)es>
Cc: PostgreSQL-development <pgsql-hackers(at)postgreSQL(dot)org>
Subject: Re: Re: postgres TODO
Date: 2000-07-08 13:41:30
Message-ID: 3.0.5.32.20000708234130.02b91690@mail.rhyme.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

At 09:14 8/07/00 -0400, Bruce Momjian wrote:
>> hi,
>>
>> threre are a postgresql/mysql comparative.
>> You can get something for the TODO:
>>
>> http://www.phpbuilder.com/columns/tim20000705.php3?page=1
>>
>> regards,
>>
>
>Thanks. Yes, I have added to the TODO list:
>
> * Add function to return primary key value on INSERT

I had a look at the page and could not see the reference, so this
suggestion may be inappropriate, but...

How about something more general - an incredibly useful feature of Dec/Rdb is:

insert into t1(...) values(...) returning attr-list

which is like performing a select directly after the insert. The same kind
of syntax applies to updates as well, eg.

update t1 set f1 = 2 where <stuff> returning f1, f2, f3;

Perhaps your original suggestion is a lot easier, but this is a convenient
feature...

----------------------------------------------------------------
Philip Warner | __---_____
Albatross Consulting Pty. Ltd. |----/ - \
(A.C.N. 008 659 498) | /(@) ______---_
Tel: (+61) 0500 83 82 81 | _________ \
Fax: (+61) 0500 83 82 82 | ___________ |
Http://www.rhyme.com.au | / \|
| --________--
PGP key available upon request, | /
and from pgp5.ai.mit.edu:11371 |/

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tatsuo Ishii 2000-07-08 13:57:32 Re: fcntl(SETLK) [was Re: 2nd update on TOAST]
Previous Message Bruce Momjian 2000-07-08 13:40:07 Re: fcntl(SETLK) [was Re: 2nd update on TOAST]