Received: from localhost.localdomain (postgresql.org [64.49.215.8]) by localhost (Postfix) with ESMTP id 707C54758E9 for ; Mon, 3 Jun 2002 12:39:23 -0400 (EDT) Received: from romana (unknown [207.215.68.169]) by postgresql.org (Postfix) with ESMTP id 0B9E047586C for ; Mon, 3 Jun 2002 12:39:22 -0400 (EDT) Received: from wotan ([192.168.0.2] helo=wotan.hajhouse.org) by romana with esmtp (Exim 3.35 #1 (Debian)) id 17Eur8-0004da-00; Mon, 03 Jun 2002 09:38:54 -0700 Received: from hajhouse by wotan.hajhouse.org with local (Exim 3.35 #1 (Debian)) id 17Eusu-0004cI-00; Mon, 03 Jun 2002 09:40:44 -0700 Date: Mon, 3 Jun 2002 09:40:44 -0700 To: Juan Rojas Cc: "'pgsql-admin@postgresql.org'" Subject: Re: drop table failed to drop associated sequence Message-ID: <20020603164044.GA17716@wotan.hajhouse.org> References: <6D0F8E8EB31A634BB06697807A87942243061A@obiwan.lan.tiba.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="gBBFr7Ir9EOA20Yy" Content-Disposition: inline In-Reply-To: <6D0F8E8EB31A634BB06697807A87942243061A@obiwan.lan.tiba.com> User-Agent: Mutt/1.3.28i From: Henry House X-Archive-Number: 200206/6 X-Sequence-Number: 4441 --gBBFr7Ir9EOA20Yy Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jun 03, 2002 at 12:59:27PM -0300, Juan Rojas wrote: > Hi, > I'm running PostgreSQL 7.2.1 on i686-pc-linux-gnu, compiled by GCC 2.96. > I have a problem when I drop a table which contains a serial field. The > system drops the table but the associated sequence still remains in the > catalog, so if I want to create the table again with the same structure, > CREATE TABLE throws an error because the sequence that it's trying to cre= ate > already exists. That's easy enough: just run a 'DROP SEQUENCE ' to remove the sequence before re-creating the table. You may discover the name of the sequence using '\ds' in psql. --=20 Henry House The attached file is a digital signature. See for information. My OpenPGP key: . --gBBFr7Ir9EOA20Yy Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE8+5wMKK1cAVjXujwRAr+nAJ9DQx3xefrKkGpxkdtDUN9hHg2JPwCgycXG +aOIFbwcff8WCME9WgVNDeg= =9L5Q -----END PGP SIGNATURE----- --gBBFr7Ir9EOA20Yy--