Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search archives
  Advanced Search

Re: Problem with Serial Columns


  • From: Dave Page <dpage(at)postgresql(dot)org>
  • To: "Luiz K. Matsumura" <luiz(at)planit(dot)com(dot)br>
  • Cc: pgadmin-support(at)postgresql(dot)org
  • Subject: Re: Problem with Serial Columns
  • Date: Thu, 26 Jul 2007 09:44:46 +0100
  • Message-id: <46A85EFE.9000203@postgresql.org> <text/plain>

Luiz K. Matsumura wrote:
The atacched diff file modify this (reference is the source of 1.6.3), but I don't have sufficient skill to compile the source and I'm not a C/C++ programmer to do a better change.

Thanks - I've applied a fix along these lines. It'll be in beta 3.

I think that a better test to serial columns, may be to verify primarily if there are a dependence between the column and the sequence, and then verify if the default value of the column is a nextval of the this sequence.

Yeah, that's been on the todo list for a while but noone got round to it yet:

- detect serial columns from pg_depend, not column default (observe deviating serial name)

Thanks, Dave



Home | Main Index | Thread Index

Privacy Policy | About PostgreSQL
Copyright © 1996 – 2012 PostgreSQL Global Development Group