Re: BUG #15967: Sequence generation using NEXTVAL() fails on 64bit systems

From: Christoph Ziegenberg <ziegenberg(at)web(dot)de>
To: Jeff Janes <jeff(dot)janes(at)gmail(dot)com>,ziegenberg(at)web(dot)de,pgsql-bugs <pgsql-bugs(at)lists(dot)postgresql(dot)org>
Subject: Re: BUG #15967: Sequence generation using NEXTVAL() fails on 64bit systems
Date: 2019-08-20 15:31:26
Message-ID: E9CEB172-6CDC-49FF-AACD-AACCE88A76C6@web.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

We also had problems to reproduce it outside of the application, but are still working on an independent test script.

One special case is, that the application uses prepared statements for all queries, also for the NEXTVAL() selection.

Christoph

Am 20. August 2019 15:44:55 MESZ schrieb Jeff Janes <jeff(dot)janes(at)gmail(dot)com>:
>>
>>
>> I did many tests:
>>
>
>Can you include the code which implements those tests?
>
>I can't reproduce with something like this:
>
>perl -e 'use DBI; fork; fork; fork; my
>$dbh=DBI->connect("dbi:Pg:host=/tmp"); for (1..1e6) {my $seq =
>$dbh->selectrow_array("select nextval('\''foo_seq'\'')");
>$dbh->do("insert
>into foo values (?)",undef,$seq);}'
>
>Cheers,
>
>Jeff

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Andres Freund 2019-08-20 16:05:53 Re: BUG #15964: vacuumdb.c:187:10: error: use of undeclared identifier 'FD_SETSIZE'
Previous Message Petar Masev 2019-08-20 15:10:03 Postgres 11.5.1 failed installation