From: | aklaver(at)comcast(dot)net (Adrian Klaver) |
---|---|
To: | "Fred Parkinson" <FredP(at)abag(dot)ca(dot)gov>, <pgsql-odbc(at)postgresql(dot)org> |
Subject: | Re: Access query as executed by postgres |
Date: | 2008-06-11 20:28:38 |
Message-ID: | 061120082028.24151.4850357600060E3A00005E5722007340769D0A900E04050E@comcast.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-odbc |
-------------- Original message ----------------------
From: "Fred Parkinson" <FredP(at)abag(dot)ca(dot)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(at)comcast(dot)net
From | Date | Subject | |
---|---|---|---|
Next Message | Richard Broersma | 2008-06-11 21:51:30 | Re: Access query as executed by postgres |
Previous Message | Richard Broersma | 2008-06-11 19:36:17 | Re: ODBC escape convert error |