Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id CBD8A1EB83EA for ; Thu, 23 Feb 2012 15:00:52 -0400 (AST) Received: from pp-ag1.abag.ca.gov ([198.31.87.11]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1S0duL-0002dC-R6 for pgsql-admin@postgresql.org; Thu, 23 Feb 2012 19:00:51 +0000 Received: from pps.filterd (pp-ag1 [127.0.0.1]) by pp-ag1.abag.ca.gov (8.14.4/8.14.4) with SMTP id q1NIxMiD022926 for ; Thu, 23 Feb 2012 11:00:36 -0800 Received: from gwia1.abag.ca.gov ([172.16.1.27]) by pp-ag1.abag.ca.gov with ESMTP id 135tjmg0hm-1 for ; Thu, 23 Feb 2012 11:00:36 -0800 Received: from d02-MTA by gwia1.abag.ca.gov with Novell_GroupWise; Thu, 23 Feb 2012 11:00:36 -0800 Message-Id: <4F461C53020000A70001B6BB@gwia1.abag.ca.gov> X-Mailer: Novell GroupWise Internet Agent 8.0.2 Date: Thu, 23 Feb 2012 11:00:34 -0800 From: "Fred Parkinson" To: Subject: Can't query the sequence table of a serial primary key. Mime-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.6.7498, 1.0.260, 0.0.0000 definitions=2012-02-23_07:2012-02-23, 2012-02-23, 1970-01-01 signatures=0 X-Pg-Spam-Score: -4.2 (----) Content-Type: multipart/alternative; boundary="=__Part2F012BC2.1__=" X-Archive-Number: 201202/94 X-Sequence-Number: 39154 This is a MIME message. If you are reading this text, you may want to consider changing to a mail reader or gateway that understands how to properly handle MIME multipart messages. --=__Part2F012BC2.0__= Content-Type: multipart/alternative; boundary="=__Part2F012BC2.1__=" --=__Part2F012BC2.1__= Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable We have moved some databases from 7.x to 8.4 Previously I could query the sequencing table of a 'serial primary key' by = simply running select * from mytable_id_seq; where mytable has id as a serial primary key and mytable_id_seq is the = postgresql relation which manages the key. =20 Has something significantly changed this in ver 8.4? When I do \d I see the table and the sequencer under 'List of relations'. But when I run select * from mytable_id_seq; postgresql responds with: relation 'mytable_id_seq' does not exist. =20 Am I confused about something? (Wouldn't be the first time sigh) =20 Thanks for any help. =20 Fred --=__Part2F012BC2.1__= Content-Type: text/html; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Description: HTML
We have moved some databases from 7.x to 8.4
Previously I could query the sequencing table of a 'serial primary = key' by simply running
select * from mytable_id_seq;
where mytable has id as a serial primary key and mytable_id_seq is = the postgresql relation which manages the key.
 
Has something significantly changed this in ver 8.4?
When I do \d I see the table and the sequencer under 'List of = relations'.
But when I run select * from mytable_id_seq; postgresql responds = with:
relation 'mytable_id_seq' does not exist.
 
Am I confused about something? (Wouldn't be the first time sigh)
=
 
Thanks for any help.
 
Fred
--=__Part2F012BC2.1__=-- --=__Part2F012BC2.0__=--