Re: AW: Re: postgres TODO

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: The Hermit Hacker <scrappy(at)hub(dot)org>
Cc: Zeugswetter Andreas SB <ZeugswetterA(at)wien(dot)spardat(dot)at>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: AW: Re: postgres TODO
Date: 2000-07-10 19:01:20
Message-ID: 200007101901.PAA00567@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> actually, had thought about this too over the weekend ... if I define a
> 'serial' type, it right now creates a sequence for that ... if I recall
> correctly, that was purely a kludge until someone built a better 'serial'
> ...
>
> having an INSERT return the value of 'serial' that was used would save a
> second SELECT call *and* eliminate the requirement for an app programmer
> to have to know to do a 'SELECT curval('table_field_seq');' ...

Yes, I can imagine that the table_field_seq name is kind of flakey. It
will choose a different name if there is a conflict, so it is an chance
for failure.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2000-07-10 21:32:35 Re: Re: [SQL] Re: [GENERAL] lztext and compression ratios...
Previous Message Bruce Momjian 2000-07-10 18:58:18 Re: more corruption