pg.ddx.io pgsql-odbc@postgresql.org mailing list archive
help / color / mirror / Atom feedAccess query as executed by postgres
3+ messages / 3 participants
[nested] [flat]
* Access query as executed by postgres
@ 2008-06-11 18:37 Fred Parkinson <FredP@abag.ca.gov>
0 siblings, 1 reply; 3+ messages in thread
From: Fred Parkinson @ 2008-06-11 18:37 UTC (permalink / raw)
To: pgsql-odbc
When I create a query in MS Access and execute via ODBC, is there a way to tell exactly what query is executed by postgres?
When I create and execute a query in Access I get what I want, but when I run the same query at the pgsql command prompt I get syntax and 'function not found' errors. Clearly Access is translating my query, but into what?
I have turned ODBC logging on but it doesn't seem to log the query sent to postgres.
Thanks
Fred
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: Access query as executed by postgres
@ 2008-06-11 20:28 Adrian Klaver <aklaver@comcast.net>
0 siblings, 0 replies; 3+ messages in thread
From: aklaver@comcast.net @ 2008-06-11 20:28 UTC (permalink / raw)
To: Fred Parkinson <FredP@abag.ca.gov>; pgsql-odbc
-------------- Original message ----------------------
From: "Fred Parkinson" <FredP@abag.ca.gov>
> When I create a query in MS Access and execute via ODBC, is there a way to tell
> exactly what query is executed by postgres?
>
> When I create and execute a query in Access I get what I want, but when I run
> the same query at the pgsql command prompt I get syntax and 'function not found'
> errors. Clearly Access is translating my query, but into what?
>
> I have turned ODBC logging on but it doesn't seem to log the query sent to
> postgres.
>
> Thanks
>
> Fred
In postgresql.conf set:
log_statement = 'all'
This will log all statements sent to the server, assuming you have logging turned on.
--
Adrian Klaver
aklaver@comcast.net
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: Access query as executed by postgres
@ 2008-06-11 21:51 Richard Broersma <richard.broersma@gmail.com>
parent: Fred Parkinson <FredP@abag.ca.gov>
0 siblings, 0 replies; 3+ messages in thread
From: Richard Broersma @ 2008-06-11 21:51 UTC (permalink / raw)
To: Fred Parkinson <FredP@abag.ca.gov>; +Cc: pgsql-odbc
On Wed, Jun 11, 2008 at 11:37 AM, Fred Parkinson <FredP@abag.ca.gov> wrote:
> I have turned ODBC logging on but it doesn't seem to log the query sent to postgres.
Here is what I like to do:
log_destination = 'stderr'
redirect_stderr = on
log_statement = 'all'
--
Regards,
Richard Broersma Jr.
Visit the Los Angles PostgreSQL Users Group (LAPUG)
http://pugs.postgresql.org/lapug
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2008-06-11 21:51 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2008-06-11 18:37 Access query as executed by postgres Fred Parkinson <FredP@abag.ca.gov>
2008-06-11 21:51 ` Richard Broersma <richard.broersma@gmail.com>
2008-06-11 20:28 Re: Access query as executed by postgres Adrian Klaver <aklaver@comcast.net>
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