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

CREATE TABLE LIKE and SERIAL


  • From: Mark Morgan Lloyd <markMLl(dot)pgsql-general(at)telemetry(dot)co(dot)uk>
  • To: pgsql-general(at)PostgreSQL(dot)org
  • Subject: CREATE TABLE LIKE and SERIAL
  • Date: Fri, 30 Oct 2009 12:44:31 +0000
  • Message-id: <hcen3g$eqf$1@pye-srv-01.telemetry.co.uk> <text/plain>

What is the "correct" behavior of a serial column when a table is created with LIKE? The manual is silent on this.

What appears to be happening with 8.2 is that the column in the new table refers to the original sequence generator.

--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]



Home | Main Index | Thread Index

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