pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Daniil Megrabyan <danil.megrabjan@gmail.com>
To: Inoue, Hiroshi <h-inoue@dream.email.ne.jp>
Cc: pgsql-odbc@postgresql.org
Subject: Re: MyLog and CommLog options
Date: Sat, 4 Feb 2017 10:51:40 +0300
Message-ID: <7C1F2298-B33F-4083-86D7-9F0F57AB1C04@gmail.com> (raw)
In-Reply-To: <ebed183b-2e02-3af2-2056-2b1d6e2baa01@dream.email.ne.jp>
References: <6CCB1DAA-442A-4DA5-B8D7-739CB7B24734@gmail.com>
	<a502eca2-52d7-cb2f-a05a-d690a4184898@dream.email.ne.jp>
	<9FDECBB3-18DD-44C0-BA1D-6191EA5F9855@gmail.com>
	<ebed183b-2e02-3af2-2056-2b1d6e2baa01@dream.email.ne.jp>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-odbc>


> 4 февр. 2017 г., в 10:45, Inoue, Hiroshi <h-inoue@dream.email.ne.jp> написал(а):
> 
> Hmm, odbc.ini exists for datasource description whereas odbcinst.ini exists for driver description.
> How do you call ODBC, via DSN or DSNless?
I’m trying both. The latest attempt:

miniBagroff:odbc danilabagroff$ cat /usr/local/etc/odbc.ini 
[pg_abra1]
Driver = PostgreSQL
Host = localhost
Port = 5432
Protocol = 6.4
FetchBufferSize = 99
Database = abra1
ReadOnly = no
MyLog = /tmp/mylog2.log

miniBagroff:odbc danilabagroff$ cat /usr/local/etc/odbcinst.ini 
[ODBC]
Trace = Yes
TraceFile = /usr/local/var/log/odbc/trace.log

[ODBC Drivers]
PostgreSQL = Installed

[PostgreSQL]
Description = PostgreSQL ODBC Driver
Driver = /usr/local/lib/psqlodbcw.so
Setup  = /usr/local/lib/psqlodbcw.so
Protocol = 6.4
FetchBufferSize = 99
ReadOnly = no
MyLog = /tmp/mylog1.log

miniBagroff:odbc danilabagroff$ isql pg_abra1 abra cadabra -v
+---------------------------------------+
| Connected!                            |
|                                       |
| sql-statement                         |
| help [tablename]                      |
| quit                                  |
|                                       |
+---------------------------------------+
SQL> SELECT 1;
+------------+
| ?column?   |
+------------+
| 1          |
+------------+
SQLRowCount returns 1
1 rows fetched
SQL> quit

miniBagroff:odbc danilabagroff$ ls /tmp/mylog*
ls: /tmp/mylog*: No such file or directory


— Daniil A Megrabyan —



-- 
Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-odbc



view thread (8+ messages)  latest in thread

Message-ID: <7C1F2298-B33F-4083-86D7-9F0F57AB1C04@gmail.com>
Permalink:  ../7C1F2298-B33F-4083-86D7-9F0F57AB1C04@gmail.com/
Also on:    postgresql.org/message-id/7C1F2298-B33F-4083-86D7-9F0F57AB1C04@gmail.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: danil.megrabjan@gmail.com, h-inoue@dream.email.ne.jp
  Subject: Re: MyLog and CommLog options
  In-Reply-To: <7C1F2298-B33F-4083-86D7-9F0F57AB1C04@gmail.com>
  References: <6CCB1DAA-442A-4DA5-B8D7-739CB7B24734@gmail.com> <a502eca2-52d7-cb2f-a05a-d690a4184898@dream.email.ne.jp> <9FDECBB3-18DD-44C0-BA1D-6191EA5F9855@gmail.com> <ebed183b-2e02-3af2-2056-2b1d6e2baa01@dream.email.ne.jp> <7C1F2298-B33F-4083-86D7-9F0F57AB1C04@gmail.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