From jbduffy@ntlworld.com Thu Oct 10 15:17:22 2002 Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 54101476656 for ; Thu, 10 Oct 2002 11:17:22 -0400 (EDT) Received: from mta06-svc.ntlworld.com (mta06-svc.ntlworld.com [62.253.162.46]) by postgresql.org (Postfix) with ESMTP id 6616247660B for ; Thu, 10 Oct 2002 11:17:21 -0400 (EDT) Received: from desktop ([62.252.136.157]) by mta06-svc.ntlworld.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with SMTP id <20021010151725.WWTO28874.mta06-svc.ntlworld.com@desktop> for ; Thu, 10 Oct 2002 16:17:25 +0100 Message-ID: <001101c27070$3060bf10$9d88fc3e@desktop> From: "John Duffy" To: Subject: NOTICE: generated by sequence nextval() Date: Thu, 10 Oct 2002 16:17:40 +0100 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_000E_01C27078.8E09D270" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200210/136 X-Sequence-Number: 9853 This is a multi-part message in MIME format. ------=_NextPart_000_000E_01C27078.8E09D270 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Postgresql 7.1.3-2 Red Hat 7.2 I've noticed that if I create a sequence, and then do a select on it using = nextval() everything works fine. However, if I drop the sequence and then c= reate it again, the same select statement generates a NOTICE. Is this normal behaviour or a bug? See below. test=3D> create sequence serial; CREATE test=3D> select nextval('serial'); nextval --------- 1 (1 row) test=3D> drop sequence serial; DROP test=3D> create sequence serial; CREATE test=3D> select nextval('serial'); NOTICE: serial.nextval: sequence was re-created nextval --------- 1 (1 row)=20 ------=_NextPart_000_000E_01C27078.8E09D270 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Postgresql 7.1.3-2
Red Hat 7.2
 
I've noticed that if I create a sequence, = and then=20 do a select on it using nextval() everything works fine. However, if I drop= the=20 sequence and then create it again, the same select statement generates a=20 NOTICE.
 
Is this normal behaviour or a bug? = See below.
 
test=3D> create sequence=20 serial;
CREATE
test=3D> select=20 nextval('serial');
 nextval
---------
    = ;  =20 1
(1 row)
 
test=3D> drop sequence=20 serial;
DROP
test=3D> create sequence serial;
CREATE
test=3D= >=20 select nextval('serial');
NOTICE:  serial.nextval: sequence was=20 re-created
 nextval
---------
     &= nbsp;=20 1
(1 row)
------=_NextPart_000_000E_01C27078.8E09D270-- From Michael.Ansley@intec-telecom-systems.com Fri Oct 11 09:16:25 2002 Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 7CD64475F82 for ; Fri, 11 Oct 2002 05:16:25 -0400 (EDT) Received: from fileserver004.intecsystems.co.uk (unknown [194.200.14.120]) by postgresql.org (Postfix) with ESMTP id 315C0475B8D for ; Fri, 11 Oct 2002 05:16:23 -0400 (EDT) Received: from fileserver002.intecsystems.co.uk (unverified) by fileserver004.intecsystems.co.uk (Content Technologies SMTPRS 4.2.5) with ESMTP id ; Fri, 11 Oct 2002 09:58:36 +0100 Received: by FILESERVER002 with Internet Mail Service (5.5.2650.21) id ; Fri, 11 Oct 2002 10:12:14 +0100 Message-ID: <7F124BC48D56D411812500D0B747251401DA448B@FILESERVER002> From: "Michael Ansley (UK)" To: 'John Duffy' , pgsql-sql@postgresql.org Subject: Re: NOTICE: generated by sequence nextval() Date: Fri, 11 Oct 2002 10:12:08 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: multipart/mixed; boundary="----_=_NextPart_000_01C27106.46AC0EBE" X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200210/138 X-Sequence-Number: 9855 This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_000_01C27106.46AC0EBE Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C27106.46AC0EBE" ------_=_NextPart_001_01C27106.46AC0EBE Content-Type: text/plain; charset="iso-8859-1" -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I would hope that this is normal, and I can see it being particularly useful. We frequently run into problems where databases ahve been reloaded, and the sequences have not been reset. And the DBAs are not going to take notice unless it's shoved in their face. It's only a NOTICE, so it shouldn't affect anything. MikeA - -----Original Message----- From: John Duffy [mailto:jbduffy@ntlworld.com] Sent: 10 October 2002 16:18 To: pgsql-sql@postgresql.org Subject: [SQL] NOTICE: generated by sequence nextval() Postgresql 7.1.3-2 Red Hat 7.2 I've noticed that if I create a sequence, and then do a select on it using nextval() everything works fine. However, if I drop the sequence and then create it again, the same select statement generates a NOTICE. Is this normal behaviour or a bug? See below. test=> create sequence serial; CREATE test=> select nextval('serial'); nextval - --------- 1 (1 row) test=> drop sequence serial; DROP test=> create sequence serial; CREATE test=> select nextval('serial'); NOTICE: serial.nextval: sequence was re-created nextval - --------- 1 (1 row) -----BEGIN PGP SIGNATURE----- Version: PGPfreeware 7.0.3 for non-commercial use iQA/AwUBPaaUlnympNV/C086EQJNgwCg1TmU/dsMr7ul14koMB5l88ecUcQAoNP6 jH1lHILqYCRzfPOTQ9+lq0BA =DWs5 -----END PGP SIGNATURE----- This e-mail and any attachments are confidential and may also be privileged and/or copyright material of Intec Telecom Systems PLC (or its affiliated companies). If you are not an intended or authorised recipient of this e-mail or have received it in error, please delete it immediately and notify the sender by e-mail. In such a case, reading, reproducing, printing or further dissemination of this e-mail is strictly prohibited and may be unlawful. Intec Telecom Systems PLC. does not represent or warrant that an attachment hereto is free from computer viruses or other defects. The opinions expressed in this e-mail and any attachments may be those of the author and are not necessarily those of Intec Telecom Systems PLC. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. ------_=_NextPart_001_01C27106.46AC0EBE Content-Type: text/html; charset="iso-8859-1" RE: [SQL] NOTICE: generated by sequence nextval()

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I would hope that this is normal, and I can see it being particularly
useful.  We frequently run into problems where databases ahve been
reloaded, and the sequences have not been reset.  And the DBAs are
not going to take notice unless it's shoved in their face.  It's only
a NOTICE, so it shouldn't affect anything.

MikeA



- -----Original Message-----
From: John Duffy [mailto:jbduffy@ntlworld.com]
Sent: 10 October 2002 16:18
To: pgsql-sql@postgresql.org
Subject: [SQL] NOTICE: generated by sequence nextval()


Postgresql 7.1.3-2
Red Hat 7.2

I've noticed that if I create a sequence, and then do a select on it
using nextval() everything works fine. However, if I drop the
sequence and then create it again, the same select statement
generates a NOTICE.

Is this normal behaviour or a bug? See below.

test=> create sequence serial;
CREATE
test=> select nextval('serial');
 nextval
- ---------
       1
(1 row)

test=> drop sequence serial;
DROP
test=> create sequence serial;
CREATE
test=> select nextval('serial');
NOTICE:  serial.nextval: sequence was re-created
 nextval
- ---------
       1
(1 row)



-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 7.0.3 for non-commercial use <http://www.pgp.com>

iQA/AwUBPaaUlnympNV/C086EQJNgwCg1TmU/dsMr7ul14koMB5l88ecUcQAoNP6
jH1lHILqYCRzfPOTQ9+lq0BA
=DWs5
-----END PGP SIGNATURE-----

 

This e-mail and any attachments are confidential and may also be privileged and/or copyright
material of Intec Telecom Systems PLC (or its affiliated companies). If you are not an
intended or authorised recipient of this e-mail or have received it in error, please delete
it immediately and notify the sender by e-mail. In such a case, reading, reproducing,
printing or further dissemination of this e-mail is strictly prohibited and may be unlawful.
Intec Telecom Systems PLC. does not represent or warrant that an attachment hereto is free
from computer viruses or other defects. The opinions expressed in this e-mail and any
attachments may be those of the author and are not necessarily those of Intec Telecom
Systems PLC.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.
------_=_NextPart_001_01C27106.46AC0EBE-- ------_=_NextPart_000_01C27106.46AC0EBE Content-Type: application/octet-stream; name="PGPexch.rtf.asc" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="PGPexch.rtf.asc" owHtGc9rI9fZJM0lYQOhUAL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2k6FxP1fee4U426+I/RhfvHUN+rB5ertcOrriDT06lJ3na TO/t3lS6/LTp36GmbHixuExf/PqZbzskmNoGSZfi0DizETkbkZcckU/1bXyM e/a6dYyk9w70AsL8mqKrle9uTcykVYTvNPZ2J+DLfcd3fwA= ------_=_NextPart_000_01C27106.46AC0EBE-- From thrasher@fibers.upc.es Fri Oct 11 11:20:29 2002 Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 7C4B94762EA for ; Fri, 11 Oct 2002 07:20:29 -0400 (EDT) Received: from egwn.net (auth02.nl.egwn.net [193.172.5.4]) by postgresql.org (Postfix) with ESMTP id 27EFC476164 for ; Fri, 11 Oct 2002 07:20:26 -0400 (EDT) Received: from fibers.upc.es (gw01.es3.egwn.net [212.9.66.13]) (authenticated) by egwn.net (8.11.6/8.11.6/EGWN) with ESMTP id g9BBJcf18314; Fri, 11 Oct 2002 13:19:38 +0200 Message-ID: <3DA6B3CB.5010903@fibers.upc.es> Date: Fri, 11 Oct 2002 13:19:39 +0200 From: Thrasher Organization: =?ISO-8859-1?Q?Delegaci=F3_Alumnes_FIB?= User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.1b) Gecko/20020721 X-Accept-Language: es-es, en-us MIME-Version: 1.0 To: "Michael Ansley (UK)" Cc: pgsql-sql@postgresql.org Subject: Re: NOTICE: generated by sequence nextval() References: <7F124BC48D56D411812500D0B747251401DA448B@FILESERVER002> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-MailScanner: Found to be clean X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200210/139 X-Sequence-Number: 9856 Hi Just to explain you that I received this email and I am not an intended or authorized recipient. So, as you ask, I'm notifying you and deleting the mail from my computer. Thank you Michael Ansley (UK) wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > I would hope that this is normal, and I can see it being particularly > useful. We frequently run into problems where databases ahve been > reloaded, and the sequences have not been reset. And the DBAs are > not going to take notice unless it's shoved in their face. It's only > a NOTICE, so it shouldn't affect anything. > > MikeA > > > > - -----Original Message----- > From: John Duffy [mailto:jbduffy@ntlworld.com] > Sent: 10 October 2002 16:18 > To: pgsql-sql@postgresql.org > Subject: [SQL] NOTICE: generated by sequence nextval() > > > Postgresql 7.1.3-2 > Red Hat 7.2 > > I've noticed that if I create a sequence, and then do a select on it > using nextval() everything works fine. However, if I drop the > sequence and then create it again, the same select statement > generates a NOTICE. > > Is this normal behaviour or a bug? See below. > > test=> create sequence serial; > CREATE > test=> select nextval('serial'); > nextval > - --------- > 1 > (1 row) > > test=> drop sequence serial; > DROP > test=> create sequence serial; > CREATE > test=> select nextval('serial'); > NOTICE: serial.nextval: sequence was re-created > nextval > - --------- > 1 > (1 row) > > > > -----BEGIN PGP SIGNATURE----- > Version: PGPfreeware 7.0.3 for non-commercial use > > iQA/AwUBPaaUlnympNV/C086EQJNgwCg1TmU/dsMr7ul14koMB5l88ecUcQAoNP6 > jH1lHILqYCRzfPOTQ9+lq0BA > =DWs5 > -----END PGP SIGNATURE----- > > | > > This e-mail and any attachments are confidential and may also be > privileged and/or copyright > material of Intec Telecom Systems PLC (or its affiliated companies). If > you are not an > intended or authorised recipient of this e-mail or have received it in > error, please delete > it immediately and notify the sender by e-mail. In such a case, reading, > reproducing, > printing or further dissemination of this e-mail is strictly prohibited > and may be unlawful. > Intec Telecom Systems PLC. does not represent or warrant that an > attachment hereto is free > from computer viruses or other defects. The opinions expressed in this > e-mail and any > attachments may be those of the author and are not necessarily those of > Intec Telecom > Systems PLC. > > This footnote also confirms that this email message has been swept by > MIMEsweeper for the presence of computer viruses. > | > > > ------------------------------------------------------------------------ > > > ---------------------------(end of broadcast)--------------------------- > TIP 6: Have you searched our list archives? > > http://archives.postgresql.org