Re: Can't query the sequence table of a serial primary key.

From: "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>
To: "Fred Parkinson" <FredP(at)abag(dot)ca(dot)gov>,<pgsql-admin(at)postgresql(dot)org>
Subject: Re: Can't query the sequence table of a serial primary key.
Date: 2012-02-23 19:34:57
Message-ID: 4F4640810200002500045AD6@gw.wicourts.gov
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

"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
> 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

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Tom Lane 2012-02-23 19:35:23 Re: Can't query the sequence table of a serial primary key.
Previous Message Fred Parkinson 2012-02-23 19:00:34 Can't query the sequence table of a serial primary key.