pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: BGoebel <b.goebel@prisma-computer.de>
To: pgsql-odbc@postgresql.org
Subject: Re: enabling psqlODBC logs
Date: Tue, 15 Nov 2011 09:37:34 -0800 (PST)
Message-ID: <1321378654770-4995095.post@n5.nabble.com> (raw)
In-Reply-To: <CAD4qJ_L_J6X5bQd-C0HOj643GmoEQ_iRgaw7uud1i7KOUOvUnA@mail.gmail.com>
References: <CAD4qJ_L_J6X5bQd-C0HOj643GmoEQ_iRgaw7uud1i7KOUOvUnA@mail.gmail.com>

Hi

Try to add "debug=1" or "commlog=1" to the connection string, the string
which holds info for port, database to connect and so on.

SQLDriverConnect(dbc, NULL, 

"Driver={PostgreSQL};Server=127.0.0.1;Port=5432;Database=postgres;Uid=postgres;Pwd=mypwd;debug=1;commlog=1;",
SQL_NTS,
                       NULL, 0, NULL, SQL_DRIVER_COMPLETE);

If you use ODBC.INI you add debug=1 / commlog =1 to the section of your
database.
 
The logs created by the driver mylog_*.log / psqlodbc_*.log you find in a
temp folder. Use a search tool to find out where exactly they are.

hope this helps

regards


--
View this message in context: http://postgresql.1045698.n5.nabble.com/enabling-psqlODBC-logs-tp4983604p4995095.html
Sent from the PostgreSQL - odbc mailing list archive at Nabble.com.



view thread (2+ messages)

Message-ID: <1321378654770-4995095.post@n5.nabble.com>
Permalink:  ../1321378654770-4995095.post@n5.nabble.com/
Also on:    postgresql.org/message-id/1321378654770-4995095.post@n5.nabble.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-odbc@postgresql.org
  Cc: b.goebel@prisma-computer.de
  Subject: Re: enabling psqlODBC logs
  In-Reply-To: <1321378654770-4995095.post@n5.nabble.com>
  References: <CAD4qJ_L_J6X5bQd-C0HOj643GmoEQ_iRgaw7uud1i7KOUOvUnA@mail.gmail.com> <1321378654770-4995095.post@n5.nabble.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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