Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id B46441EB83EA for ; Thu, 23 Feb 2012 15:35:23 -0400 (AST) Received: from gwmta.wicourts.gov ([165.219.244.99] helo=gw.wicourts.gov) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1S0eRl-00057X-4b for pgsql-admin@postgresql.org; Thu, 23 Feb 2012 19:35:22 +0000 Received: from Courts-MTA by gw.wicourts.gov with Novell_GroupWise; Thu, 23 Feb 2012 13:35:06 -0600 Message-Id: <4F4640810200002500045AD6@gw.wicourts.gov> X-Mailer: Novell GroupWise Internet Agent 8.0.2 Date: Thu, 23 Feb 2012 13:34:57 -0600 From: "Kevin Grittner" To: "Fred Parkinson" , Subject: Re: Can't query the sequence table of a serial primary key. References: <4F461C53020000A70001B6BB@gwia1.abag.ca.gov> In-Reply-To: <4F461C53020000A70001B6BB@gwia1.abag.ca.gov> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Pg-Spam-Score: -4.2 (----) X-Archive-Number: 201202/95 X-Sequence-Number: 39155 "Fred Parkinson" wrote: > 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. It works for me. Can you provide a small self-contained test case which demonstrates the problem? Hopefully you are aware of these functions, which might be easier: http://www.postgresql.org/docs/8.4/interactive/functions-sequence.html -Kevin