Re: pg_get_serial_sequence Strangeness/Unreliable?

Поиск
Список
Период
Сортировка
От Jeff MacDonald
Тема Re: pg_get_serial_sequence Strangeness/Unreliable?
Дата
Msg-id 5EF3BF1D-16E1-4A37-A596-6D55E910E3C9@bignose.ca
обсуждение исходный текст
Ответ на Re: pg_get_serial_sequence Strangeness/Unreliable?  (Alvaro Herrera <alvherre@commandprompt.com>)
Список pgsql-general
ALTER SEQUENCE OWNED BY worked!

Thanks folks.

jeff.

On 26-Nov-08, at 1:04 PM, Alvaro Herrera wrote:

> Jeff MacDonald wrote:
>
>> Hi Tom, so far as I know the table "owns" the serial in so much as
>> when i
>> do a \d of the table it says this
>>
>> status_id     | integer               | not null default
>> nextval('status_status_id_seq'::regclass)
>>
>> How else can I check?
>
> He means ALTER SEQUENCE ... OWNED BY
>
> I don't know how you can ensure that it is, short of
>
> begin;
> drop table status;
> \d status_status_id_seq
> -- verify that the sequence exists; if owned, it should have been
> dropped too
> rollback;
>
> --
> Alvaro Herrera                                http://www.CommandPrompt.com/
> PostgreSQL Replication, Consulting, Custom Development, 24x7 support


В списке pgsql-general по дате отправления:

Предыдущее
От: "Scott Marlowe"
Дата:
Сообщение: Re: Corruption in postgres 7.4 on solaris 2.9.
Следующее
От: "Josh Harrison"
Дата:
Сообщение: Limit on number of databases in a Cluster ?