Thanks everyone for your replies.
In my original post I failed to EXACTLY reproduce the problem, in that capital letters were involved which I left out of the description.
For example, the id had been set up as "ID" serial primary key, and the sequencer was consequently named 'mytable_ID_seq' not 'mytable_id_seq' (he was stabbed to death by details!)
When I ran the select statement I DID reproduce the capital letters as they existed, but got the error I described.
In the effort to create a test sample I left out all caps and made everything lower case.
Viola! The problem disappeared! Sanity restored (for now).
That's it, no more caps for me!
Thanks again for everyone's efforts to help.
>>> "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov> 02/23/2012 11:34 AM >>>
"Fred Parkinson" <FredP(at)abag(dot)ca(dot)gov> 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
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:
In response to
pgsql-admin by date
|Next:||From: Lutz Steinborn||Date: 2012-02-24 13:54:57|
|Subject: logfile per DataBase|
|Previous:||From: Tom Lane||Date: 2012-02-23 19:35:23|
|Subject: Re: Can't query the sequence table of a serial primary key. |