Re: Two sequences associated with one identity column

Поиск
Список
Период
Сортировка
От hubert depesz lubaczewski
Тема Re: Two sequences associated with one identity column
Дата
Msg-id aQICcMvkp96kenL8@depesz.com
обсуждение исходный текст
Ответ на Two sequences associated with one identity column  ("Colin 't Hart" <colinthart@gmail.com>)
Ответы Re: Two sequences associated with one identity column
Список pgsql-general
On Wed, Oct 29, 2025 at 12:27:44PM +0100, Colin 't Hart wrote:
> One of my clients has a database in which a single identity column
> (called "id" in that table) has two sequences associated with it(!)
> Both sequences display
> Sequence for identity column: <schema>.<table>.id
> when described with \d in psql.
> Trying to drop either sequence results in

Try:

ALTER SEQUENCE some_seq_name OWNED BY none;
DROP SEQUENCE some_seq_name;

Best regards,

depesz




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