pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Julius Tuskenis <julius@nsoft.lt>
Cc: Achilleas Mantzios <achill@matrix.gatewaynet.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: changing sequence in serial field
Date: Fri, 04 Jul 2008 11:49:56 -0400
Message-ID: <23310.1215186596@sss.pgh.pa.us> (raw)
In-Reply-To: <486DC626.7040008@nsoft.lt>
References: <486CE004.8000400@nsoft.lt>
	<200807031808.47683.achill@matrix.gatewaynet.com>
	<486DC626.7040008@nsoft.lt>

Julius Tuskenis <julius@nsoft.lt> writes:
> b_prekes_br_kodas_pbk_id_seq1 was created automatically creating serial field and is in some way connected to it. Thats why I get error saying "...column pbk_id requires it." Any way I can't find a way to find and alter this dependency.

It's a row in pg_depend.  In 8.2 and up you can create/delete the row
with ALTER SEQUENCE OWNED BY, but in earlier releases you'd have to do
it manually.

			regards, tom lane



view thread (4+ messages)

Message-ID: <23310.1215186596@sss.pgh.pa.us>
Permalink:  ../23310.1215186596@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/23310.1215186596@sss.pgh.pa.us

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, julius@nsoft.lt, achill@matrix.gatewaynet.com
  Subject: Re: changing sequence in serial field
  In-Reply-To: <23310.1215186596@sss.pgh.pa.us>

* 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