Re: Issue while calling new PostgreSQL command from a Java Application - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Issue while calling new PostgreSQL command from a Java Application
Date
Msg-id 19482.1404483020@sss.pgh.pa.us
Whole thread Raw
In response to Re: Issue while calling new PostgreSQL command from a Java Application  (Ashoke <s.ashoke@gmail.com>)
List pgsql-hackers
Ashoke <s.ashoke@gmail.com> writes:
> Thank you Ashutosh*.* That was the issue. But, could you please explain why
> it worked from command line?

Simple vs extended query protocol, probably --- the former avoids copying
the constructed parsetree, but I think the latter doesn't.  Or maybe the
JDBC driver tried to prepare the query; a prepared statement is most
certainly going to copy the parsetree.

In general, if you add a field to any node type, you'd better go through
backend/nodes/ and teach all the relevant functions about it.  What I tend
to do is grep for one of the existing fields in the struct and see which
functions that reference it need additions.
        regards, tom lane



pgsql-hackers by date:

Previous
From: Rahila Syed
Date:
Subject: Re: [REVIEW] Re: Compression of full-page-writes
Next
From: Tom Lane
Date:
Subject: Re: Cluster name in ps output