pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Fred Parkinson <FredP@abag.ca.gov>
To: pgsql-admin@postgresql.org
Subject: Can't query the sequence table of a serial primary key.
Date: Thu, 23 Feb 2012 11:00:34 -0800
Message-ID: <4F461C53020000A70001B6BB@gwia1.abag.ca.gov> (raw)

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

view thread (4+ messages)  latest in thread

Message-ID: <4F461C53020000A70001B6BB@gwia1.abag.ca.gov>
Permalink:  ../4F461C53020000A70001B6BB@gwia1.abag.ca.gov/
Also on:    postgresql.org/message-id/4F461C53020000A70001B6BB@gwia1.abag.ca.gov

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: FredP@abag.ca.gov
  Subject: Re: Can't query the sequence table of a serial primary key.
  In-Reply-To: <4F461C53020000A70001B6BB@gwia1.abag.ca.gov>
  References: <4F461C53020000A70001B6BB@gwia1.abag.ca.gov>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox