Re: view table pkey values
От
Scott Frankel
Тема
Re: view table pkey values
Дата
Msg-id
8A72684F-B296-4EC7-ABEB-339F2CA6B0B3@pacbell.net
Ответ на
Re: view table pkey values (Raymond O'Donnell)
Список
Дерево обсуждения
view table pkey values Scott Frankel <leknarf@pacbell.net>
Re: view table pkey values Raymond O'Donnell <rod@iol.ie>
Re: view table pkey values Raymond O'Donnell <rod@iol.ie>
Re: view table pkey values Scott Frankel <leknarf@pacbell.net>
Re: view table pkey values Tom Lane <tgl@sss.pgh.pa.us>
Re: view table pkey values Scott Frankel <leknarf@pacbell.net>
Re: view table pkey values Raymond O'Donnell <rod@iol.ie>
Re: view table pkey values Scott Frankel <leknarf@pacbell.net>
Thanks for the thorough explanation and link to more docs. Very much appreciated! Scott On Aug 24, 2009, at 11:03 AM, Raymond O'Donnell wrote: > On 24/08/2009 18:37, Scott Frankel wrote: >> If I understand how tables are managed internally, there are 2 >> sequences: my explicit foo_id and the internal sequence >> foo_foo_id_seq: >> >> public | foo_foo_id_seq | sequence | pguser | >> >> It's this internal sequence that must be involved in the collision, >> since I'm not specifying an insert value for my explicit foo_id >> column. > > Your column foo_id is just that - a column . It's not a sequence. It's > an integer column which is specified to take it's default value from a > sequence, which Postgres creates for you and names foo_foo_id_seq. > > In fact, "serial" isn't a real type - its syntactic sugar that - > > (i) creates the sequence, named
В списке pgsql-general по дате отправления