pg.ddx.io pgsql-jdbc@postgresql.org mailing list archive
help / color / mirror / Atom feedInvoking a function within a batch statement
14+ messages / 5 participants
[nested] [flat]
* Invoking a function within a batch statement
@ 2016-08-17 03:38 Evan Meagher <evan.meagher@gmail.com>
2016-08-17 15:06 ` Re: Invoking a function within a batch statement Vitalii Tymchyshyn <vit@tym.im>
2016-08-19 15:00 ` Re: Invoking a function within a batch statement Vladimir Sitnikov <sitnikov.vladimir@gmail.com>
0 siblings, 2 replies; 14+ messages in thread
From: Evan Meagher @ 2016-08-17 03:38 UTC (permalink / raw)
To: pgsql-jdbc; +Cc: stevenschlansker@gmail.com
Hello,
I'm having trouble invoking a PostgreSQL function
<https://www.postgresql.org/docs/9.4/static/sql-syntax-calling-funcs.html;
within a prepared batch statement, and I'm wondering if it's possible that
I'm encountering a limitation in the JDBC driver.
For context, my application uses jDBI v2.63.1 with version 9.4-1204-jdbc42
of the Postgres driver. I've implemented a feature which requires insertion
into certain tables using a custom PL/pgSQL function. In order to issue
batches of these queries within a single transaction, I'd like to use
jDBI's `@SqlBatch` annotation. However, because Postgres functions are
invoked using SELECT, they return a table-like result, so even though my
PL/pgSQL function returns VOID, the queries fail in the JDBC driver because
it's expecting a null result.
The jDBI-annotated DAO method in question:
@SqlBatch(
transactional=true,
value="SELECT append_to_time_series(<arguments_redacted>)")
public void insertV2(
...
);
This results in a BatchUpdateException wrapping a PSQLException which
indicates a root cause of an unexpected null result: https://gist.github.
com/evnm/17a370c6ead2a2dfeaab0285e067897a
This issue is being tracked in a jDBI issue on GitHub
<https://github.com/jdbi/jdbi/issues/447;, which links to some relevant
discussion that took place on the jDBI mailing list. Any insight from the
JDBC community would be greatly appreciated.
--
Evan Meagher
^ permalink raw reply [nested|flat] 14+ messages in thread
* Re: Invoking a function within a batch statement
2016-08-17 03:38 Invoking a function within a batch statement Evan Meagher <evan.meagher@gmail.com>
@ 2016-08-17 15:06 ` Vitalii Tymchyshyn <vit@tym.im>
2016-08-17 15:16 ` Re: Invoking a function within a batch statement rob stone <floriparob@gmail.com>
1 sibling, 1 reply; 14+ messages in thread
From: Vitalii Tymchyshyn @ 2016-08-17 15:06 UTC (permalink / raw)
To: Evan Meagher <evan.meagher@gmail.com>; pgsql-jdbc; +Cc: stevenschlansker@gmail.com
I think you should be able to use {call proc(params)} form, see
https://jdbc.postgresql.org/documentation/80/callproc.html
Best regards, Vitalii Tymchyshyn
Ср, 17 серп. 2016 10:24 користувач Evan Meagher <evan.meagher@gmail.com>
пише:
> Hello,
>
> I'm having trouble invoking a PostgreSQL function
> <https://www.postgresql.org/docs/9.4/static/sql-syntax-calling-funcs.html;
> within a prepared batch statement, and I'm wondering if it's possible that
> I'm encountering a limitation in the JDBC driver.
>
> For context, my application uses jDBI v2.63.1 with version 9.4-1204-jdbc42
> of the Postgres driver. I've implemented a feature which requires
> insertion into certain tables using a custom PL/pgSQL function. In order to
> issue batches of these queries within a single transaction, I'd like to use
> jDBI's `@SqlBatch` annotation. However, because Postgres functions are
> invoked using SELECT, they return a table-like result, so even though my
> PL/pgSQL function returns VOID, the queries fail in the JDBC driver because
> it's expecting a null result.
>
> The jDBI-annotated DAO method in question:
>
> @SqlBatch(
> transactional=true,
> value="SELECT append_to_time_series(<arguments_redacted>)")
> public void insertV2(
> ...
> );
>
> This results in a BatchUpdateException wrapping a PSQLException which
> indicates a root cause of an unexpected null result:
> https://gist.github.com/evnm/17a370c6ead2a2dfeaab0285e067897a
>
> This issue is being tracked in a jDBI issue on GitHub
> <https://github.com/jdbi/jdbi/issues/447;, which links to some relevant
> discussion that took place on the jDBI mailing list. Any insight from the
> JDBC community would be greatly appreciated.
>
> --
> Evan Meagher
>
^ permalink raw reply [nested|flat] 14+ messages in thread
* Re: Invoking a function within a batch statement
2016-08-17 03:38 Invoking a function within a batch statement Evan Meagher <evan.meagher@gmail.com>
2016-08-17 15:06 ` Re: Invoking a function within a batch statement Vitalii Tymchyshyn <vit@tym.im>
@ 2016-08-17 15:16 ` rob stone <floriparob@gmail.com>
2016-08-17 15:55 ` Re: Invoking a function within a batch statement Evan Meagher <evan.meagher@gmail.com>
0 siblings, 1 reply; 14+ messages in thread
From: rob stone @ 2016-08-17 15:16 UTC (permalink / raw)
To: Vitalii Tymchyshyn <vit@tym.im>; Evan Meagher <evan.meagher@gmail.com>; pgsql-jdbc; +Cc: stevenschlansker@gmail.com
On Wed, 2016-08-17 at 15:06 +0000, Vitalii Tymchyshyn wrote:
> I think you should be able to use {call proc(params)} form, see https
> ://jdbc.postgresql.org/documentation/80/callproc.html
> Best regards, Vitalii Tymchyshyn
>
Or see https://jdbc.postgresql.org/documentation/94/callproc.html
which is the latest doco.
Note that 1209 is the most recent driver.
HTH,
rob
--
Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-jdbc
^ permalink raw reply [nested|flat] 14+ messages in thread
* Re: Invoking a function within a batch statement
2016-08-17 03:38 Invoking a function within a batch statement Evan Meagher <evan.meagher@gmail.com>
2016-08-17 15:06 ` Re: Invoking a function within a batch statement Vitalii Tymchyshyn <vit@tym.im>
2016-08-17 15:16 ` Re: Invoking a function within a batch statement rob stone <floriparob@gmail.com>
@ 2016-08-17 15:55 ` Evan Meagher <evan.meagher@gmail.com>
2016-08-19 13:03 ` Re: Invoking a function within a batch statement Dave Cramer <pg@fastcrypt.com>
0 siblings, 1 reply; 14+ messages in thread
From: Evan Meagher @ 2016-08-17 15:55 UTC (permalink / raw)
To: rob stone <floriparob@gmail.com>; +Cc: Vitalii Tymchyshyn <vit@tym.im>; pgsql-jdbc; stevenschlansker@gmail.com
Thanks for the replies. I was under the impression that the `{call ...}`
syntax in JDBC only applied to stored procedures, so that's good to know
regarding functions that return refcursors. However, as Example 6.2 on that
page <https://jdbc.postgresql.org/documentation/94/callproc.html;
illustrates, one must use SELECT to invoke functions that return SETOF
results.
In my use case, the function boils down to the invocation of an INSERT
statement, so there is no result. And more generally, it seems to me that
JDBC should support the batch SETOF-returning function use case. That is to
say, JDBC probably shouldn't reject non-none results as it currently seems
to be.
On Wed, Aug 17, 2016 at 8:16 AM, rob stone <floriparob@gmail.com> wrote:
>
> On Wed, 2016-08-17 at 15:06 +0000, Vitalii Tymchyshyn wrote:
> > I think you should be able to use {call proc(params)} form, see https
> > ://jdbc.postgresql.org/documentation/80/callproc.html
> > Best regards, Vitalii Tymchyshyn
> >
>
> Or see https://jdbc.postgresql.org/documentation/94/callproc.html
>
> which is the latest doco.
>
> Note that 1209 is the most recent driver.
>
> HTH,
> rob
>
--
Evan Meagher
^ permalink raw reply [nested|flat] 14+ messages in thread
* Re: Invoking a function within a batch statement
2016-08-17 03:38 Invoking a function within a batch statement Evan Meagher <evan.meagher@gmail.com>
2016-08-17 15:06 ` Re: Invoking a function within a batch statement Vitalii Tymchyshyn <vit@tym.im>
2016-08-17 15:16 ` Re: Invoking a function within a batch statement rob stone <floriparob@gmail.com>
2016-08-17 15:55 ` Re: Invoking a function within a batch statement Evan Meagher <evan.meagher@gmail.com>
@ 2016-08-19 13:03 ` Dave Cramer <pg@fastcrypt.com>
0 siblings, 0 replies; 14+ messages in thread
From: Dave Cramer @ 2016-08-19 13:03 UTC (permalink / raw)
To: Evan Meagher <evan.meagher@gmail.com>; +Cc: rob stone <floriparob@gmail.com>; Vitalii Tymchyshyn <vit@tym.im>; pgsql-jdbc; Steven Schlansker <stevenschlansker@gmail.com>
Well we don't actually have stored procs so we do the next best thing.. Let
us know how the call syntax works out for you
Dave Cramer
davec@postgresintl.com
www.postgresintl.com
On 17 August 2016 at 11:55, Evan Meagher <evan.meagher@gmail.com> wrote:
> Thanks for the replies. I was under the impression that the `{call ...}`
> syntax in JDBC only applied to stored procedures, so that's good to know
> regarding functions that return refcursors. However, as Example 6.2 on
> that page <https://jdbc.postgresql.org/documentation/94/callproc.html;
> illustrates, one must use SELECT to invoke functions that return SETOF
> results.
>
> In my use case, the function boils down to the invocation of an INSERT
> statement, so there is no result. And more generally, it seems to me that
> JDBC should support the batch SETOF-returning function use case. That is to
> say, JDBC probably shouldn't reject non-none results as it currently seems
> to be.
>
> On Wed, Aug 17, 2016 at 8:16 AM, rob stone <floriparob@gmail.com> wrote:
>
>>
>> On Wed, 2016-08-17 at 15:06 +0000, Vitalii Tymchyshyn wrote:
>> > I think you should be able to use {call proc(params)} form, see https
>> > ://jdbc.postgresql.org/documentation/80/callproc.html
>> > Best regards, Vitalii Tymchyshyn
>> >
>>
>> Or see https://jdbc.postgresql.org/documentation/94/callproc.html
>>
>> which is the latest doco.
>>
>> Note that 1209 is the most recent driver.
>>
>> HTH,
>> rob
>>
>
>
>
> --
> Evan Meagher
>
^ permalink raw reply [nested|flat] 14+ messages in thread
* Re: Invoking a function within a batch statement
2016-08-17 03:38 Invoking a function within a batch statement Evan Meagher <evan.meagher@gmail.com>
@ 2016-08-19 15:00 ` Vladimir Sitnikov <sitnikov.vladimir@gmail.com>
2016-08-23 03:37 ` Re: Invoking a function within a batch statement Evan Meagher <evan.meagher@gmail.com>
1 sibling, 1 reply; 14+ messages in thread
From: Vladimir Sitnikov @ 2016-08-19 15:00 UTC (permalink / raw)
To: Evan Meagher <evan.meagher@gmail.com>; +Cc: pgsql-jdbc; stevenschlansker@gmail.com
Evan>However, because Postgres functions are invoked using SELECT, they
return a table-like result, so even though my PL/pgSQL function returns
VOID, the queries fail in the JDBC driver because it's expecting a null
result.
Evan,
Can you please try the latest pgjdbc 9.4.1210-SNAPSHOT + @GetGeneratedKeys
near your @SqlBatch("select ...") kind of statement?
The idea is as follows:
1) jDBI would issue prepareStatement(..., Statement.RETURN_GENERATED_KEYS);
2) pgjdbc has recently learned to handle "return generated keys" better, so
that "return_generated_keys" would hint pgjdbc that it should expect some
response (including empty rowset), so it won't fail with "none was
expected".
Technically speaking, the question "if pgjdbc should fail when unexpected
row data comes in a response to a query" was raised (see
https://github.com/pgjdbc/pgjdbc/issues/488#issuecomment-237908650 ),
however historical behavior was just fail with "A result was returned when
none was expected"
The solution is to use proper API when executing statements that return
something. For instance: executeQuery, or use "generated keys" API.
Vladimir
>
^ permalink raw reply [nested|flat] 14+ messages in thread
* Re: Invoking a function within a batch statement
2016-08-17 03:38 Invoking a function within a batch statement Evan Meagher <evan.meagher@gmail.com>
2016-08-19 15:00 ` Re: Invoking a function within a batch statement Vladimir Sitnikov <sitnikov.vladimir@gmail.com>
@ 2016-08-23 03:37 ` Evan Meagher <evan.meagher@gmail.com>
2016-08-23 11:15 ` Re: Invoking a function within a batch statement Dave Cramer <pg@fastcrypt.com>
2016-08-23 18:25 ` Re: Invoking a function within a batch statement Vitalii Tymchyshyn <vit@tym.im>
0 siblings, 2 replies; 14+ messages in thread
From: Evan Meagher @ 2016-08-23 03:37 UTC (permalink / raw)
To: Vladimir Sitnikov <sitnikov.vladimir@gmail.com>; +Cc: pgsql-jdbc@postgresql.org, Steven Schlansker <stevenschlansker@gmail.com>
> Let us know how the call syntax works out for you
Using `{append_to_time_series(...)}` results in a o.p.u.PSQLException with
message 'ERROR: syntax error at or near "{"'
> Can you please try the latest pgjdbc 9.4.1210-SNAPSHOT +
@GetGeneratedKeys near your @SqlBatch("select ...") kind of statement?
That works! In fact, on 9.4.1210-SNAPSHOT, it works with and without the
@GetGeneratedKeys annotation.
I guess I'll just stay tuned for a stable 9.4.1210 release and make do with
the snapshots in the meantime. Thanks to all for the responses, and thanks
Vladimir for the workaround!
On Fri, Aug 19, 2016 at 8:00 AM, Vladimir Sitnikov <
sitnikov.vladimir@gmail.com> wrote:
> Evan>However, because Postgres functions are invoked using SELECT, they
> return a table-like result, so even though my PL/pgSQL function returns
> VOID, the queries fail in the JDBC driver because it's expecting a null
> result.
>
> Evan,
>
> Can you please try the latest pgjdbc 9.4.1210-SNAPSHOT + @GetGeneratedKeys
> near your @SqlBatch("select ...") kind of statement?
>
> The idea is as follows:
> 1) jDBI would issue prepareStatement(..., Statement.RETURN_GENERATED_
> KEYS);
> 2) pgjdbc has recently learned to handle "return generated keys" better,
> so that "return_generated_keys" would hint pgjdbc that it should expect
> some response (including empty rowset), so it won't fail with "none was
> expected".
>
> Technically speaking, the question "if pgjdbc should fail when unexpected
> row data comes in a response to a query" was raised (see
> https://github.com/pgjdbc/pgjdbc/issues/488#issuecomment-237908650 ),
> however historical behavior was just fail with "A result was returned when
> none was expected"
>
> The solution is to use proper API when executing statements that return
> something. For instance: executeQuery, or use "generated keys" API.
>
> Vladimir
>
>>
--
Evan Meagher
^ permalink raw reply [nested|flat] 14+ messages in thread
* Re: Invoking a function within a batch statement
2016-08-17 03:38 Invoking a function within a batch statement Evan Meagher <evan.meagher@gmail.com>
2016-08-19 15:00 ` Re: Invoking a function within a batch statement Vladimir Sitnikov <sitnikov.vladimir@gmail.com>
2016-08-23 03:37 ` Re: Invoking a function within a batch statement Evan Meagher <evan.meagher@gmail.com>
@ 2016-08-23 11:15 ` Dave Cramer <pg@fastcrypt.com>
2016-08-23 11:24 ` Re: Invoking a function within a batch statement Vladimir Sitnikov <sitnikov.vladimir@gmail.com>
1 sibling, 1 reply; 14+ messages in thread
From: Dave Cramer @ 2016-08-23 11:15 UTC (permalink / raw)
To: Evan Meagher <evan.meagher@gmail.com>; +Cc: Vladimir Sitnikov <sitnikov.vladimir@gmail.com>; pgsql-jdbc; Steven Schlansker <stevenschlansker@gmail.com>
Evan,
On 22 August 2016 at 23:37, Evan Meagher <evan.meagher@gmail.com> wrote:
> > Let us know how the call syntax works out for you
>
> Using `{append_to_time_series(...)}` results in a o.p.u.PSQLException with
> message 'ERROR: syntax error at or near "{"'
>
>
Can you show us exactly what you did here the { should not be getting
through to the backend.
Dave Cramer
davec@postgresintl.com
www.postgresintl.com
> > Can you please try the latest pgjdbc 9.4.1210-SNAPSHOT +
> @GetGeneratedKeys near your @SqlBatch("select ...") kind of statement?
>
> That works! In fact, on 9.4.1210-SNAPSHOT, it works with and without the
> @GetGeneratedKeys annotation.
>
> I guess I'll just stay tuned for a stable 9.4.1210 release and make do
> with the snapshots in the meantime. Thanks to all for the responses, and
> thanks Vladimir for the workaround!
>
> On Fri, Aug 19, 2016 at 8:00 AM, Vladimir Sitnikov <
> sitnikov.vladimir@gmail.com> wrote:
>
>> Evan>However, because Postgres functions are invoked using SELECT, they
>> return a table-like result, so even though my PL/pgSQL function returns
>> VOID, the queries fail in the JDBC driver because it's expecting a null
>> result.
>>
>> Evan,
>>
>> Can you please try the latest pgjdbc 9.4.1210-SNAPSHOT +
>> @GetGeneratedKeys near your @SqlBatch("select ...") kind of statement?
>>
>> The idea is as follows:
>> 1) jDBI would issue prepareStatement(..., Statement.RETURN_GENERATED_KEY
>> S);
>> 2) pgjdbc has recently learned to handle "return generated keys" better,
>> so that "return_generated_keys" would hint pgjdbc that it should expect
>> some response (including empty rowset), so it won't fail with "none was
>> expected".
>>
>> Technically speaking, the question "if pgjdbc should fail when unexpected
>> row data comes in a response to a query" was raised (see
>> https://github.com/pgjdbc/pgjdbc/issues/488#issuecomment-237908650 ),
>> however historical behavior was just fail with "A result was returned when
>> none was expected"
>>
>> The solution is to use proper API when executing statements that return
>> something. For instance: executeQuery, or use "generated keys" API.
>>
>> Vladimir
>>
>>>
>
>
> --
> Evan Meagher
>
^ permalink raw reply [nested|flat] 14+ messages in thread
* Re: Invoking a function within a batch statement
2016-08-17 03:38 Invoking a function within a batch statement Evan Meagher <evan.meagher@gmail.com>
2016-08-19 15:00 ` Re: Invoking a function within a batch statement Vladimir Sitnikov <sitnikov.vladimir@gmail.com>
2016-08-23 03:37 ` Re: Invoking a function within a batch statement Evan Meagher <evan.meagher@gmail.com>
2016-08-23 11:15 ` Re: Invoking a function within a batch statement Dave Cramer <pg@fastcrypt.com>
@ 2016-08-23 11:24 ` Vladimir Sitnikov <sitnikov.vladimir@gmail.com>
0 siblings, 0 replies; 14+ messages in thread
From: Vladimir Sitnikov @ 2016-08-23 11:24 UTC (permalink / raw)
To: Dave Cramer <pg@fastcrypt.com>; Evan Meagher <evan.meagher@gmail.com>; +Cc: pgsql-jdbc; Steven Schlansker <stevenschlansker@gmail.com>
Evan>Using `{append_to_time_series(...)}` results in a o.p.u.PSQLException
with message 'ERROR: syntax error at or near "{"'
My guess is CallableStatement was not used, thus no replacement of { ... }
was made, thus backend did receive those curly braces.
I'm not sure if SqlObject can do con.prepareCall instead of
con.prepareStatement
Evan>That works! In fact, on 9.4.1210-SNAPSHOT, it works with and without
the @GetGeneratedKeys annotation
That sounds strange to me, and I don't think that kind of test is in
pgjdbc's regression suite.
Evan, it would be great if you could provide a self-contained test case
that fails with "pre 1210" version so we won't accidentally break that
behavior.
Vladimir
^ permalink raw reply [nested|flat] 14+ messages in thread
* Re: Invoking a function within a batch statement
2016-08-17 03:38 Invoking a function within a batch statement Evan Meagher <evan.meagher@gmail.com>
2016-08-19 15:00 ` Re: Invoking a function within a batch statement Vladimir Sitnikov <sitnikov.vladimir@gmail.com>
2016-08-23 03:37 ` Re: Invoking a function within a batch statement Evan Meagher <evan.meagher@gmail.com>
@ 2016-08-23 18:25 ` Vitalii Tymchyshyn <vit@tym.im>
2016-08-23 18:35 ` Re: Invoking a function within a batch statement Evan Meagher <evan.meagher@gmail.com>
1 sibling, 1 reply; 14+ messages in thread
From: Vitalii Tymchyshyn @ 2016-08-23 18:25 UTC (permalink / raw)
To: Evan Meagher <evan.meagher@gmail.com>; Vladimir Sitnikov <sitnikov.vladimir@gmail.com>; +Cc: Steven Schlansker <stevenschlansker@gmail.com>; pgsql-jdbc
Correct syntax is {call procedure(params)}. I think you forgot "call".
Пн, 22 серп. 2016 23:38 користувач Evan Meagher <evan.meagher@gmail.com>
пише:
> > Let us know how the call syntax works out for you
>
> Using `{append_to_time_series(...)}` results in a o.p.u.PSQLException with
> message 'ERROR: syntax error at or near "{"'
>
> > Can you please try the latest pgjdbc 9.4.1210-SNAPSHOT +
> @GetGeneratedKeys near your @SqlBatch("select ...") kind of statement?
>
> That works! In fact, on 9.4.1210-SNAPSHOT, it works with and without the
> @GetGeneratedKeys annotation.
>
> I guess I'll just stay tuned for a stable 9.4.1210 release and make do
> with the snapshots in the meantime. Thanks to all for the responses, and
> thanks Vladimir for the workaround!
>
> On Fri, Aug 19, 2016 at 8:00 AM, Vladimir Sitnikov <
> sitnikov.vladimir@gmail.com> wrote:
>
>> Evan>However, because Postgres functions are invoked using SELECT, they
>> return a table-like result, so even though my PL/pgSQL function returns
>> VOID, the queries fail in the JDBC driver because it's expecting a null
>> result.
>>
>> Evan,
>>
>> Can you please try the latest pgjdbc 9.4.1210-SNAPSHOT +
>> @GetGeneratedKeys near your @SqlBatch("select ...") kind of statement?
>>
>> The idea is as follows:
>> 1) jDBI would issue prepareStatement(...,
>> Statement.RETURN_GENERATED_KEYS);
>> 2) pgjdbc has recently learned to handle "return generated keys" better,
>> so that "return_generated_keys" would hint pgjdbc that it should expect
>> some response (including empty rowset), so it won't fail with "none was
>> expected".
>>
>> Technically speaking, the question "if pgjdbc should fail when unexpected
>> row data comes in a response to a query" was raised (see
>> https://github.com/pgjdbc/pgjdbc/issues/488#issuecomment-237908650 ),
>> however historical behavior was just fail with "A result was returned when
>> none was expected"
>>
>> The solution is to use proper API when executing statements that return
>> something. For instance: executeQuery, or use "generated keys" API.
>>
>> Vladimir
>>
>>>
>
>
> --
> Evan Meagher
>
^ permalink raw reply [nested|flat] 14+ messages in thread
* Re: Invoking a function within a batch statement
2016-08-17 03:38 Invoking a function within a batch statement Evan Meagher <evan.meagher@gmail.com>
2016-08-19 15:00 ` Re: Invoking a function within a batch statement Vladimir Sitnikov <sitnikov.vladimir@gmail.com>
2016-08-23 03:37 ` Re: Invoking a function within a batch statement Evan Meagher <evan.meagher@gmail.com>
2016-08-23 18:25 ` Re: Invoking a function within a batch statement Vitalii Tymchyshyn <vit@tym.im>
@ 2016-08-23 18:35 ` Evan Meagher <evan.meagher@gmail.com>
2016-08-27 19:06 ` Re: Invoking a function within a batch statement Evan Meagher <evan.meagher@gmail.com>
0 siblings, 1 reply; 14+ messages in thread
From: Evan Meagher @ 2016-08-23 18:35 UTC (permalink / raw)
To: Vitalii Tymchyshyn <vit@tym.im>; +Cc: Vladimir Sitnikov <sitnikov.vladimir@gmail.com>; Steven Schlansker <stevenschlansker@gmail.com>; pgsql-jdbc
Sorry, I noticed that mistake after sending as well. The query statement I
used included the `call` keyword, I just missed it when augmenting the
simplified example code from my initial email.
I modified by original jDBI DAO method with the `{call ...}` syntax thusly:
@SqlBatch(
transactional=true,
value="{call append_to_time_series(...)}")
public void insert(...);
> Evan, it would be great if you could provide a self-contained test case
that fails with "pre 1210" version so we won't accidentally break that
behavior.
I will see if I can tickle this issue with an addition to jDBI's test
suite. It already has a
<https://github.com/jdbi/jdbi/blob/master/src/test/java/org/skife/jdbi/v2/TestPreparedBatchGenerateKe...;
few
<https://github.com/jdbi/jdbi/blob/master/src/test/java/org/skife/jdbi/v2/sqlobject/TestPostgresBugs....;
test
classes
<https://github.com/jdbi/jdbi/blob/master/src/test/java/org/skife/jdbi/v2/sqlobject/TestGetGeneratedK...;
that target specific corners of Postgres/pgjdbc. I'll update this thread
once I have something replicable.
On Tue, Aug 23, 2016 at 11:25 AM, Vitalii Tymchyshyn <vit@tym.im> wrote:
> Correct syntax is {call procedure(params)}. I think you forgot "call".
>
>
>
> Пн, 22 серп. 2016 23:38 користувач Evan Meagher <evan.meagher@gmail.com>
> пише:
>
>> > Let us know how the call syntax works out for you
>>
>> Using `{append_to_time_series(...)}` results in a o.p.u.PSQLException
>> with message 'ERROR: syntax error at or near "{"'
>>
>> > Can you please try the latest pgjdbc 9.4.1210-SNAPSHOT +
>> @GetGeneratedKeys near your @SqlBatch("select ...") kind of statement?
>>
>> That works! In fact, on 9.4.1210-SNAPSHOT, it works with and without the
>> @GetGeneratedKeys annotation.
>>
>> I guess I'll just stay tuned for a stable 9.4.1210 release and make do
>> with the snapshots in the meantime. Thanks to all for the responses, and
>> thanks Vladimir for the workaround!
>>
>> On Fri, Aug 19, 2016 at 8:00 AM, Vladimir Sitnikov <
>> sitnikov.vladimir@gmail.com> wrote:
>>
>>> Evan>However, because Postgres functions are invoked using SELECT, they
>>> return a table-like result, so even though my PL/pgSQL function returns
>>> VOID, the queries fail in the JDBC driver because it's expecting a null
>>> result.
>>>
>>> Evan,
>>>
>>> Can you please try the latest pgjdbc 9.4.1210-SNAPSHOT +
>>> @GetGeneratedKeys near your @SqlBatch("select ...") kind of statement?
>>>
>>> The idea is as follows:
>>> 1) jDBI would issue prepareStatement(..., Statement.RETURN_GENERATED_
>>> KEYS);
>>> 2) pgjdbc has recently learned to handle "return generated keys" better,
>>> so that "return_generated_keys" would hint pgjdbc that it should expect
>>> some response (including empty rowset), so it won't fail with "none was
>>> expected".
>>>
>>> Technically speaking, the question "if pgjdbc should fail when
>>> unexpected row data comes in a response to a query" was raised (see
>>> https://github.com/pgjdbc/pgjdbc/issues/488#issuecomment-237908650 ),
>>> however historical behavior was just fail with "A result was returned when
>>> none was expected"
>>>
>>> The solution is to use proper API when executing statements that return
>>> something. For instance: executeQuery, or use "generated keys" API.
>>>
>>> Vladimir
>>>
>>>>
>>
>>
>> --
>> Evan Meagher
>>
>
--
Evan Meagher
^ permalink raw reply [nested|flat] 14+ messages in thread
* Re: Invoking a function within a batch statement
2016-08-17 03:38 Invoking a function within a batch statement Evan Meagher <evan.meagher@gmail.com>
2016-08-19 15:00 ` Re: Invoking a function within a batch statement Vladimir Sitnikov <sitnikov.vladimir@gmail.com>
2016-08-23 03:37 ` Re: Invoking a function within a batch statement Evan Meagher <evan.meagher@gmail.com>
2016-08-23 18:25 ` Re: Invoking a function within a batch statement Vitalii Tymchyshyn <vit@tym.im>
2016-08-23 18:35 ` Re: Invoking a function within a batch statement Evan Meagher <evan.meagher@gmail.com>
@ 2016-08-27 19:06 ` Evan Meagher <evan.meagher@gmail.com>
2016-08-27 21:26 ` Re: Invoking a function within a batch statement Dave Cramer <pg@fastcrypt.com>
0 siblings, 1 reply; 14+ messages in thread
From: Evan Meagher @ 2016-08-27 19:06 UTC (permalink / raw)
To: Vitalii Tymchyshyn <vit@tym.im>; +Cc: Vladimir Sitnikov <sitnikov.vladimir@gmail.com>; Steven Schlansker <stevenschlansker@gmail.com>; pgsql-jdbc
I've created a branch which adds a test to jDBI's
TestPreparedBatchGenerateKeysPostgres class which triggers the "A result
was returned when none was expected" error:
https://github.com/evnm/jdbi/commit/407b3770fab7e606a88be44a5eb0e8141b012e04
Here's the test output I'm seing locally:
https://gist.github.com/evnm/03f8f12fe61ba8830a4f81623b8076ed
This branch is based on the jdbi-2.75 tag, which pulls in
pgjdbc 9.1-901-1.jdbc4.
On Tue, Aug 23, 2016 at 11:35 AM, Evan Meagher <evan.meagher@gmail.com>
wrote:
> Sorry, I noticed that mistake after sending as well. The query statement I
> used included the `call` keyword, I just missed it when augmenting the
> simplified example code from my initial email.
>
> I modified by original jDBI DAO method with the `{call ...}` syntax thusly:
>
> @SqlBatch(
> transactional=true,
> value="{call append_to_time_series(...)}")
> public void insert(...);
>
> > Evan, it would be great if you could provide a self-contained test case
> that fails with "pre 1210" version so we won't accidentally break that
> behavior.
>
> I will see if I can tickle this issue with an addition to jDBI's test
> suite. It already has a
> <https://github.com/jdbi/jdbi/blob/master/src/test/java/org/skife/jdbi/v2/TestPreparedBatchGenerateKe...;
> few
> <https://github.com/jdbi/jdbi/blob/master/src/test/java/org/skife/jdbi/v2/sqlobject/TestPostgresBugs....; test
> classes
> <https://github.com/jdbi/jdbi/blob/master/src/test/java/org/skife/jdbi/v2/sqlobject/TestGetGeneratedK...;
> that target specific corners of Postgres/pgjdbc. I'll update this thread
> once I have something replicable.
>
> On Tue, Aug 23, 2016 at 11:25 AM, Vitalii Tymchyshyn <vit@tym.im> wrote:
>
>> Correct syntax is {call procedure(params)}. I think you forgot "call".
>>
>>
>>
>> Пн, 22 серп. 2016 23:38 користувач Evan Meagher <evan.meagher@gmail.com>
>> пише:
>>
>>> > Let us know how the call syntax works out for you
>>>
>>> Using `{append_to_time_series(...)}` results in a o.p.u.PSQLException
>>> with message 'ERROR: syntax error at or near "{"'
>>>
>>> > Can you please try the latest pgjdbc 9.4.1210-SNAPSHOT +
>>> @GetGeneratedKeys near your @SqlBatch("select ...") kind of statement?
>>>
>>> That works! In fact, on 9.4.1210-SNAPSHOT, it works with and without the
>>> @GetGeneratedKeys annotation.
>>>
>>> I guess I'll just stay tuned for a stable 9.4.1210 release and make do
>>> with the snapshots in the meantime. Thanks to all for the responses, and
>>> thanks Vladimir for the workaround!
>>>
>>> On Fri, Aug 19, 2016 at 8:00 AM, Vladimir Sitnikov <
>>> sitnikov.vladimir@gmail.com> wrote:
>>>
>>>> Evan>However, because Postgres functions are invoked using SELECT,
>>>> they return a table-like result, so even though my PL/pgSQL function
>>>> returns VOID, the queries fail in the JDBC driver because it's expecting a
>>>> null result.
>>>>
>>>> Evan,
>>>>
>>>> Can you please try the latest pgjdbc 9.4.1210-SNAPSHOT +
>>>> @GetGeneratedKeys near your @SqlBatch("select ...") kind of statement?
>>>>
>>>> The idea is as follows:
>>>> 1) jDBI would issue prepareStatement(..., Statement.RETURN_GENERATED_KEY
>>>> S);
>>>> 2) pgjdbc has recently learned to handle "return generated keys"
>>>> better, so that "return_generated_keys" would hint pgjdbc that it should
>>>> expect some response (including empty rowset), so it won't fail with "none
>>>> was expected".
>>>>
>>>> Technically speaking, the question "if pgjdbc should fail when
>>>> unexpected row data comes in a response to a query" was raised (see
>>>> https://github.com/pgjdbc/pgjdbc/issues/488#issuecomment-237908650 ),
>>>> however historical behavior was just fail with "A result was returned when
>>>> none was expected"
>>>>
>>>> The solution is to use proper API when executing statements that return
>>>> something. For instance: executeQuery, or use "generated keys" API.
>>>>
>>>> Vladimir
>>>>
>>>>>
>>>
>>>
>>> --
>>> Evan Meagher
>>>
>>
>
>
> --
> Evan Meagher
>
--
Evan Meagher
^ permalink raw reply [nested|flat] 14+ messages in thread
* Re: Invoking a function within a batch statement
2016-08-17 03:38 Invoking a function within a batch statement Evan Meagher <evan.meagher@gmail.com>
2016-08-19 15:00 ` Re: Invoking a function within a batch statement Vladimir Sitnikov <sitnikov.vladimir@gmail.com>
2016-08-23 03:37 ` Re: Invoking a function within a batch statement Evan Meagher <evan.meagher@gmail.com>
2016-08-23 18:25 ` Re: Invoking a function within a batch statement Vitalii Tymchyshyn <vit@tym.im>
2016-08-23 18:35 ` Re: Invoking a function within a batch statement Evan Meagher <evan.meagher@gmail.com>
2016-08-27 19:06 ` Re: Invoking a function within a batch statement Evan Meagher <evan.meagher@gmail.com>
@ 2016-08-27 21:26 ` Dave Cramer <pg@fastcrypt.com>
2016-08-27 22:35 ` Re: Invoking a function within a batch statement Evan Meagher <evan.meagher@gmail.com>
0 siblings, 1 reply; 14+ messages in thread
From: Dave Cramer @ 2016-08-27 21:26 UTC (permalink / raw)
To: Evan Meagher <evan.meagher@gmail.com>; +Cc: Vitalii Tymchyshyn <vit@tym.im>; Vladimir Sitnikov <sitnikov.vladimir@gmail.com>; Steven Schlansker <stevenschlansker@gmail.com>; pgsql-jdbc
Evan,
we aren't going to ever fix 9.1-901 JDBC code is there any way to get jdbi
to use a current driver ?
Dave Cramer
davec@postgresintl.com
www.postgresintl.com
On 27 August 2016 at 15:06, Evan Meagher <evan.meagher@gmail.com> wrote:
> I've created a branch which adds a test to jDBI's
> TestPreparedBatchGenerateKeysPostgres class which triggers the "A result
> was returned when none was expected" error: https://github.com/evnm/jdbi/
> commit/407b3770fab7e606a88be44a5eb0e8141b012e04
>
> Here's the test output I'm seing locally: https://gist.github.com/evnm/
> 03f8f12fe61ba8830a4f81623b8076ed
>
> This branch is based on the jdbi-2.75 tag, which pulls in
> pgjdbc 9.1-901-1.jdbc4.
>
> On Tue, Aug 23, 2016 at 11:35 AM, Evan Meagher <evan.meagher@gmail.com>
> wrote:
>
>> Sorry, I noticed that mistake after sending as well. The query statement
>> I used included the `call` keyword, I just missed it when augmenting the
>> simplified example code from my initial email.
>>
>> I modified by original jDBI DAO method with the `{call ...}` syntax
>> thusly:
>>
>> @SqlBatch(
>> transactional=true,
>> value="{call append_to_time_series(...)}")
>> public void insert(...);
>>
>> > Evan, it would be great if you could provide a self-contained test
>> case that fails with "pre 1210" version so we won't accidentally break that
>> behavior.
>>
>> I will see if I can tickle this issue with an addition to jDBI's test
>> suite. It already has a
>> <https://github.com/jdbi/jdbi/blob/master/src/test/java/org/skife/jdbi/v2/TestPreparedBatchGenerateKe...;
>> few
>> <https://github.com/jdbi/jdbi/blob/master/src/test/java/org/skife/jdbi/v2/sqlobject/TestPostgresBugs....; test
>> classes
>> <https://github.com/jdbi/jdbi/blob/master/src/test/java/org/skife/jdbi/v2/sqlobject/TestGetGeneratedK...;
>> that target specific corners of Postgres/pgjdbc. I'll update this thread
>> once I have something replicable.
>>
>> On Tue, Aug 23, 2016 at 11:25 AM, Vitalii Tymchyshyn <vit@tym.im> wrote:
>>
>>> Correct syntax is {call procedure(params)}. I think you forgot "call".
>>>
>>>
>>>
>>> Пн, 22 серп. 2016 23:38 користувач Evan Meagher <evan.meagher@gmail.com>
>>> пише:
>>>
>>>> > Let us know how the call syntax works out for you
>>>>
>>>> Using `{append_to_time_series(...)}` results in a o.p.u.PSQLException
>>>> with message 'ERROR: syntax error at or near "{"'
>>>>
>>>> > Can you please try the latest pgjdbc 9.4.1210-SNAPSHOT +
>>>> @GetGeneratedKeys near your @SqlBatch("select ...") kind of statement?
>>>>
>>>> That works! In fact, on 9.4.1210-SNAPSHOT, it works with and without
>>>> the @GetGeneratedKeys annotation.
>>>>
>>>> I guess I'll just stay tuned for a stable 9.4.1210 release and make do
>>>> with the snapshots in the meantime. Thanks to all for the responses, and
>>>> thanks Vladimir for the workaround!
>>>>
>>>> On Fri, Aug 19, 2016 at 8:00 AM, Vladimir Sitnikov <
>>>> sitnikov.vladimir@gmail.com> wrote:
>>>>
>>>>> Evan>However, because Postgres functions are invoked using SELECT,
>>>>> they return a table-like result, so even though my PL/pgSQL function
>>>>> returns VOID, the queries fail in the JDBC driver because it's expecting a
>>>>> null result.
>>>>>
>>>>> Evan,
>>>>>
>>>>> Can you please try the latest pgjdbc 9.4.1210-SNAPSHOT +
>>>>> @GetGeneratedKeys near your @SqlBatch("select ...") kind of statement?
>>>>>
>>>>> The idea is as follows:
>>>>> 1) jDBI would issue prepareStatement(...,
>>>>> Statement.RETURN_GENERATED_KEYS);
>>>>> 2) pgjdbc has recently learned to handle "return generated keys"
>>>>> better, so that "return_generated_keys" would hint pgjdbc that it should
>>>>> expect some response (including empty rowset), so it won't fail with "none
>>>>> was expected".
>>>>>
>>>>> Technically speaking, the question "if pgjdbc should fail when
>>>>> unexpected row data comes in a response to a query" was raised (see
>>>>> https://github.com/pgjdbc/pgjdbc/issues/488#issuecomment-237908650 ),
>>>>> however historical behavior was just fail with "A result was returned when
>>>>> none was expected"
>>>>>
>>>>> The solution is to use proper API when executing statements that
>>>>> return something. For instance: executeQuery, or use "generated keys" API.
>>>>>
>>>>> Vladimir
>>>>>
>>>>>>
>>>>
>>>>
>>>> --
>>>> Evan Meagher
>>>>
>>>
>>
>>
>> --
>> Evan Meagher
>>
>
>
>
> --
> Evan Meagher
>
^ permalink raw reply [nested|flat] 14+ messages in thread
* Re: Invoking a function within a batch statement
2016-08-17 03:38 Invoking a function within a batch statement Evan Meagher <evan.meagher@gmail.com>
2016-08-19 15:00 ` Re: Invoking a function within a batch statement Vladimir Sitnikov <sitnikov.vladimir@gmail.com>
2016-08-23 03:37 ` Re: Invoking a function within a batch statement Evan Meagher <evan.meagher@gmail.com>
2016-08-23 18:25 ` Re: Invoking a function within a batch statement Vitalii Tymchyshyn <vit@tym.im>
2016-08-23 18:35 ` Re: Invoking a function within a batch statement Evan Meagher <evan.meagher@gmail.com>
2016-08-27 19:06 ` Re: Invoking a function within a batch statement Evan Meagher <evan.meagher@gmail.com>
2016-08-27 21:26 ` Re: Invoking a function within a batch statement Dave Cramer <pg@fastcrypt.com>
@ 2016-08-27 22:35 ` Evan Meagher <evan.meagher@gmail.com>
0 siblings, 0 replies; 14+ messages in thread
From: Evan Meagher @ 2016-08-27 22:35 UTC (permalink / raw)
To: Dave Cramer <pg@fastcrypt.com>; +Cc: Vitalii Tymchyshyn <vit@tym.im>; Vladimir Sitnikov <sitnikov.vladimir@gmail.com>; Steven Schlansker <stevenschlansker@gmail.com>; pgsql-jdbc
The plot thickens. Upgrading jDBI to JDBC 9.4.1209 results in the test
passing. Walking it back a few versions, it appears that the transition
from 9.4.1207 to 9.4.1208 breaks the test.
Looking at the changelog of 9.4.1208, there are a couple changes related to
callable and batch statement handling, but I'm not familiar enough with the
codebase to make much immediate sense out of them:
https://github.com/pgjdbc/pgjdbc/pull/459
https://github.com/pgjdbc/pgjdbc/pull/503
On Sat, Aug 27, 2016 at 2:26 PM, Dave Cramer <pg@fastcrypt.com> wrote:
> Evan,
>
> we aren't going to ever fix 9.1-901 JDBC code is there any way to get jdbi
> to use a current driver ?
>
> Dave Cramer
>
> davec@postgresintl.com
> www.postgresintl.com
>
> On 27 August 2016 at 15:06, Evan Meagher <evan.meagher@gmail.com> wrote:
>
>> I've created a branch which adds a test to jDBI's
>> TestPreparedBatchGenerateKeysPostgres class which triggers the "A result
>> was returned when none was expected" error:
>> https://github.com/evnm/jdbi/commit/407b3770fab7e606a88be44a
>> 5eb0e8141b012e04
>>
>> Here's the test output I'm seing locally: https://gist.github.c
>> om/evnm/03f8f12fe61ba8830a4f81623b8076ed
>>
>> This branch is based on the jdbi-2.75 tag, which pulls in
>> pgjdbc 9.1-901-1.jdbc4.
>>
>> On Tue, Aug 23, 2016 at 11:35 AM, Evan Meagher <evan.meagher@gmail.com>
>> wrote:
>>
>>> Sorry, I noticed that mistake after sending as well. The query statement
>>> I used included the `call` keyword, I just missed it when augmenting the
>>> simplified example code from my initial email.
>>>
>>> I modified by original jDBI DAO method with the `{call ...}` syntax
>>> thusly:
>>>
>>> @SqlBatch(
>>> transactional=true,
>>> value="{call append_to_time_series(...)}")
>>> public void insert(...);
>>>
>>> > Evan, it would be great if you could provide a self-contained test
>>> case that fails with "pre 1210" version so we won't accidentally break that
>>> behavior.
>>>
>>> I will see if I can tickle this issue with an addition to jDBI's test
>>> suite. It already has a
>>> <https://github.com/jdbi/jdbi/blob/master/src/test/java/org/skife/jdbi/v2/TestPreparedBatchGenerateKe...;
>>> few
>>> <https://github.com/jdbi/jdbi/blob/master/src/test/java/org/skife/jdbi/v2/sqlobject/TestPostgresBugs....; test
>>> classes
>>> <https://github.com/jdbi/jdbi/blob/master/src/test/java/org/skife/jdbi/v2/sqlobject/TestGetGeneratedK...;
>>> that target specific corners of Postgres/pgjdbc. I'll update this thread
>>> once I have something replicable.
>>>
>>> On Tue, Aug 23, 2016 at 11:25 AM, Vitalii Tymchyshyn <vit@tym.im> wrote:
>>>
>>>> Correct syntax is {call procedure(params)}. I think you forgot "call".
>>>>
>>>>
>>>>
>>>> Пн, 22 серп. 2016 23:38 користувач Evan Meagher <evan.meagher@gmail.com>
>>>> пише:
>>>>
>>>>> > Let us know how the call syntax works out for you
>>>>>
>>>>> Using `{append_to_time_series(...)}` results in a o.p.u.PSQLException
>>>>> with message 'ERROR: syntax error at or near "{"'
>>>>>
>>>>> > Can you please try the latest pgjdbc 9.4.1210-SNAPSHOT +
>>>>> @GetGeneratedKeys near your @SqlBatch("select ...") kind of statement?
>>>>>
>>>>> That works! In fact, on 9.4.1210-SNAPSHOT, it works with and without
>>>>> the @GetGeneratedKeys annotation.
>>>>>
>>>>> I guess I'll just stay tuned for a stable 9.4.1210 release and make do
>>>>> with the snapshots in the meantime. Thanks to all for the responses, and
>>>>> thanks Vladimir for the workaround!
>>>>>
>>>>> On Fri, Aug 19, 2016 at 8:00 AM, Vladimir Sitnikov <
>>>>> sitnikov.vladimir@gmail.com> wrote:
>>>>>
>>>>>> Evan>However, because Postgres functions are invoked using SELECT,
>>>>>> they return a table-like result, so even though my PL/pgSQL function
>>>>>> returns VOID, the queries fail in the JDBC driver because it's expecting a
>>>>>> null result.
>>>>>>
>>>>>> Evan,
>>>>>>
>>>>>> Can you please try the latest pgjdbc 9.4.1210-SNAPSHOT +
>>>>>> @GetGeneratedKeys near your @SqlBatch("select ...") kind of statement?
>>>>>>
>>>>>> The idea is as follows:
>>>>>> 1) jDBI would issue prepareStatement(...,
>>>>>> Statement.RETURN_GENERATED_KEYS);
>>>>>> 2) pgjdbc has recently learned to handle "return generated keys"
>>>>>> better, so that "return_generated_keys" would hint pgjdbc that it should
>>>>>> expect some response (including empty rowset), so it won't fail with "none
>>>>>> was expected".
>>>>>>
>>>>>> Technically speaking, the question "if pgjdbc should fail when
>>>>>> unexpected row data comes in a response to a query" was raised (see
>>>>>> https://github.com/pgjdbc/pgjdbc/issues/488#issuecomment-237908650 ),
>>>>>> however historical behavior was just fail with "A result was returned when
>>>>>> none was expected"
>>>>>>
>>>>>> The solution is to use proper API when executing statements that
>>>>>> return something. For instance: executeQuery, or use "generated keys" API.
>>>>>>
>>>>>> Vladimir
>>>>>>
>>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Evan Meagher
>>>>>
>>>>
>>>
>>>
>>> --
>>> Evan Meagher
>>>
>>
>>
>>
>> --
>> Evan Meagher
>>
>
>
--
Evan Meagher
^ permalink raw reply [nested|flat] 14+ messages in thread
end of thread, other threads:[~2016-08-27 22:35 UTC | newest]
Thread overview: 14+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2016-08-17 03:38 Invoking a function within a batch statement Evan Meagher <evan.meagher@gmail.com>
2016-08-17 15:06 ` Vitalii Tymchyshyn <vit@tym.im>
2016-08-17 15:16 ` rob stone <floriparob@gmail.com>
2016-08-17 15:55 ` Evan Meagher <evan.meagher@gmail.com>
2016-08-19 13:03 ` Dave Cramer <pg@fastcrypt.com>
2016-08-19 15:00 ` Vladimir Sitnikov <sitnikov.vladimir@gmail.com>
2016-08-23 03:37 ` Evan Meagher <evan.meagher@gmail.com>
2016-08-23 11:15 ` Dave Cramer <pg@fastcrypt.com>
2016-08-23 11:24 ` Vladimir Sitnikov <sitnikov.vladimir@gmail.com>
2016-08-23 18:25 ` Vitalii Tymchyshyn <vit@tym.im>
2016-08-23 18:35 ` Evan Meagher <evan.meagher@gmail.com>
2016-08-27 19:06 ` Evan Meagher <evan.meagher@gmail.com>
2016-08-27 21:26 ` Dave Cramer <pg@fastcrypt.com>
2016-08-27 22:35 ` Evan Meagher <evan.meagher@gmail.com>
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