pg.ddx.io pgsql-odbc@postgresql.org mailing list archive
help / color / mirror / Atom feedMyLog and CommLog options
8+ messages / 2 participants
[nested] [flat]
* MyLog and CommLog options
@ 2017-02-03 17:15 Daniil Megrabyan <danil.megrabjan@gmail.com>
2017-02-04 01:08 ` Re: MyLog and CommLog options Inoue, Hiroshi <h-inoue@dream.email.ne.jp>
0 siblings, 1 reply; 8+ messages in thread
From: Daniil Megrabyan @ 2017-02-03 17:15 UTC (permalink / raw)
To: pgsql-odbc
I extremely need the most verbose log as it possible, I’m trying to enable MyLog and CommLog options in different ways as a part of Driver description in odbcinst.ini and in the DSN section. No luck.
I’m under macOS + unixODBC 2.3.4 + psqlodbc 09.05.0400
Current odbc.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
Debug = 1
MyLog = /tmp/mylog.log
CommLog = /tmp/commlog.log
What is wrong with my config?
Thanks in advance.
— 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
^ permalink raw reply [nested|flat] 8+ messages in thread
* Re: MyLog and CommLog options
2017-02-03 17:15 MyLog and CommLog options Daniil Megrabyan <danil.megrabjan@gmail.com>
@ 2017-02-04 01:08 ` Inoue, Hiroshi <h-inoue@dream.email.ne.jp>
2017-02-04 06:38 ` Re: MyLog and CommLog options Daniil Megrabyan <danil.megrabjan@gmail.com>
0 siblings, 1 reply; 8+ messages in thread
From: Inoue, Hiroshi @ 2017-02-04 01:08 UTC (permalink / raw)
To: Daniil Megrabyan <danil.megrabjan@gmail.com>; +Cc: pgsql-odbc
Hi Daniil,
On 2017/02/04 2:15, Daniil Megrabyan wrote:
> I extremely need the most verbose log as it possible, I’m trying to enable MyLog and CommLog options in different ways as a part of Driver description in odbcinst.ini and in the DSN section. No luck.
> I’m under macOS + unixODBC 2.3.4 + psqlodbc 09.05.0400
>
> Current odbc.ini
Is it odbc.ini or 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
> Debug = 1
> MyLog = /tmp/mylog.log
> CommLog = /tmp/commlog.log
>
> What is wrong with my config?
>
> Thanks in advance.
>
> — 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
^ permalink raw reply [nested|flat] 8+ messages in thread
* Re: MyLog and CommLog options
2017-02-03 17:15 MyLog and CommLog options Daniil Megrabyan <danil.megrabjan@gmail.com>
2017-02-04 01:08 ` Re: MyLog and CommLog options Inoue, Hiroshi <h-inoue@dream.email.ne.jp>
@ 2017-02-04 06:38 ` Daniil Megrabyan <danil.megrabjan@gmail.com>
2017-02-04 07:45 ` Re: MyLog and CommLog options Inoue, Hiroshi <h-inoue@dream.email.ne.jp>
0 siblings, 1 reply; 8+ messages in thread
From: Daniil Megrabyan @ 2017-02-04 06:38 UTC (permalink / raw)
To: Inoue, Hiroshi <h-inoue@dream.email.ne.jp>; +Cc: pgsql-odbc
> 4 февр. 2017 г., в 4:08, Inoue, Hiroshi <h-inoue@dream.email.ne.jp> написал(а):
>
> On 2017/02/04 2:15, Daniil Megrabyan wrote:
>> I extremely need the most verbose log as it possible, I’m trying to enable MyLog and CommLog options in different ways as a part of Driver description in odbcinst.ini and in the DSN section. No luck.
>> I’m under macOS + unixODBC 2.3.4 + psqlodbc 09.05.0400
>>
>> Current odbc.ini
>
> Is it odbc.ini or odbcinst.ini?
Sorry, odbcinst.ini of course.
— 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
^ permalink raw reply [nested|flat] 8+ messages in thread
* Re: MyLog and CommLog options
2017-02-03 17:15 MyLog and CommLog options Daniil Megrabyan <danil.megrabjan@gmail.com>
2017-02-04 01:08 ` Re: MyLog and CommLog options Inoue, Hiroshi <h-inoue@dream.email.ne.jp>
2017-02-04 06:38 ` Re: MyLog and CommLog options Daniil Megrabyan <danil.megrabjan@gmail.com>
@ 2017-02-04 07:45 ` Inoue, Hiroshi <h-inoue@dream.email.ne.jp>
2017-02-04 07:51 ` Re: MyLog and CommLog options Daniil Megrabyan <danil.megrabjan@gmail.com>
0 siblings, 1 reply; 8+ messages in thread
From: Inoue, Hiroshi @ 2017-02-04 07:45 UTC (permalink / raw)
To: Daniil Megrabyan <danil.megrabjan@gmail.com>; +Cc: pgsql-odbc
Hi Daniil,
On 2017/02/04 15:38, Daniil Megrabyan wrote:
>> 4 февр. 2017 г., в 4:08, Inoue, Hiroshi <h-inoue@dream.email.ne.jp> написал(а):
>>
>> On 2017/02/04 2:15, Daniil Megrabyan wrote:
>>> I extremely need the most verbose log as it possible, I’m trying to enable MyLog and CommLog options in different ways as a part of Driver description in odbcinst.ini and in the DSN section. No luck.
>>> I’m under macOS + unixODBC 2.3.4 + psqlodbc 09.05.0400
>>>
>>> Current odbc.ini
>> Is it odbc.ini or odbcinst.ini?
> Sorry, odbcinst.ini of course.
Hmm, odbc.ini exists for datasource description whereas odbcinst.ini
exists for driver description.
How do you call ODBC, via DSN or DSNless?
regards,
Hiroshi Inoue
--
Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-odbc
^ permalink raw reply [nested|flat] 8+ messages in thread
* Re: MyLog and CommLog options
2017-02-03 17:15 MyLog and CommLog options Daniil Megrabyan <danil.megrabjan@gmail.com>
2017-02-04 01:08 ` Re: MyLog and CommLog options Inoue, Hiroshi <h-inoue@dream.email.ne.jp>
2017-02-04 06:38 ` Re: MyLog and CommLog options Daniil Megrabyan <danil.megrabjan@gmail.com>
2017-02-04 07:45 ` Re: MyLog and CommLog options Inoue, Hiroshi <h-inoue@dream.email.ne.jp>
@ 2017-02-04 07:51 ` Daniil Megrabyan <danil.megrabjan@gmail.com>
2017-02-04 08:30 ` Re: MyLog and CommLog options Inoue, Hiroshi <h-inoue@dream.email.ne.jp>
0 siblings, 1 reply; 8+ messages in thread
From: Daniil Megrabyan @ 2017-02-04 07:51 UTC (permalink / raw)
To: Inoue, Hiroshi <h-inoue@dream.email.ne.jp>; +Cc: pgsql-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
^ permalink raw reply [nested|flat] 8+ messages in thread
* Re: MyLog and CommLog options
2017-02-03 17:15 MyLog and CommLog options Daniil Megrabyan <danil.megrabjan@gmail.com>
2017-02-04 01:08 ` Re: MyLog and CommLog options Inoue, Hiroshi <h-inoue@dream.email.ne.jp>
2017-02-04 06:38 ` Re: MyLog and CommLog options Daniil Megrabyan <danil.megrabjan@gmail.com>
2017-02-04 07:45 ` Re: MyLog and CommLog options Inoue, Hiroshi <h-inoue@dream.email.ne.jp>
2017-02-04 07:51 ` Re: MyLog and CommLog options Daniil Megrabyan <danil.megrabjan@gmail.com>
@ 2017-02-04 08:30 ` Inoue, Hiroshi <h-inoue@dream.email.ne.jp>
2017-02-04 08:44 ` Re: MyLog and CommLog options Daniil Megrabyan <danil.megrabjan@gmail.com>
0 siblings, 1 reply; 8+ messages in thread
From: Inoue, Hiroshi @ 2017-02-04 08:30 UTC (permalink / raw)
To: Daniil Megrabyan <danil.megrabjan@gmail.com>; +Cc: pgsql-odbc
On 2017/02/04 16:51, Daniil Megrabyan wrote:
>> 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
Mylog isn't an option, instead try
Debug = 1
Possibly you will find /tmp/mylog_xxxx.
regards,
Hiroshi Inoue
>
> 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
^ permalink raw reply [nested|flat] 8+ messages in thread
* Re: MyLog and CommLog options
2017-02-03 17:15 MyLog and CommLog options Daniil Megrabyan <danil.megrabjan@gmail.com>
2017-02-04 01:08 ` Re: MyLog and CommLog options Inoue, Hiroshi <h-inoue@dream.email.ne.jp>
2017-02-04 06:38 ` Re: MyLog and CommLog options Daniil Megrabyan <danil.megrabjan@gmail.com>
2017-02-04 07:45 ` Re: MyLog and CommLog options Inoue, Hiroshi <h-inoue@dream.email.ne.jp>
2017-02-04 07:51 ` Re: MyLog and CommLog options Daniil Megrabyan <danil.megrabjan@gmail.com>
2017-02-04 08:30 ` Re: MyLog and CommLog options Inoue, Hiroshi <h-inoue@dream.email.ne.jp>
@ 2017-02-04 08:44 ` Daniil Megrabyan <danil.megrabjan@gmail.com>
2017-02-04 10:53 ` Re: MyLog and CommLog options Inoue, Hiroshi <h-inoue@dream.email.ne.jp>
0 siblings, 1 reply; 8+ messages in thread
From: Daniil Megrabyan @ 2017-02-04 08:44 UTC (permalink / raw)
To: Inoue, Hiroshi <h-inoue@dream.email.ne.jp>; +Cc: pgsql-odbc
> 4 февр. 2017 г., в 11:30, Inoue, Hiroshi <h-inoue@dream.email.ne.jp> написал(а):
>
>> 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
>
> Mylog isn't an option, instead try
>
> Debug = 1
>
> Possibly you will find /tmp/mylog_xxxx.
Bingo! It works for tiny example with isql when I put Debug option into odbc.ini(for DSN). Is there is any way to enable this option for all driver(in odbcinst.ini) connections? When I’m trying my real life example(with DSNless connections) the mylog, unfortunately, does not appear.
Thank you.
— 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
^ permalink raw reply [nested|flat] 8+ messages in thread
* Re: MyLog and CommLog options
2017-02-03 17:15 MyLog and CommLog options Daniil Megrabyan <danil.megrabjan@gmail.com>
2017-02-04 01:08 ` Re: MyLog and CommLog options Inoue, Hiroshi <h-inoue@dream.email.ne.jp>
2017-02-04 06:38 ` Re: MyLog and CommLog options Daniil Megrabyan <danil.megrabjan@gmail.com>
2017-02-04 07:45 ` Re: MyLog and CommLog options Inoue, Hiroshi <h-inoue@dream.email.ne.jp>
2017-02-04 07:51 ` Re: MyLog and CommLog options Daniil Megrabyan <danil.megrabjan@gmail.com>
2017-02-04 08:30 ` Re: MyLog and CommLog options Inoue, Hiroshi <h-inoue@dream.email.ne.jp>
2017-02-04 08:44 ` Re: MyLog and CommLog options Daniil Megrabyan <danil.megrabjan@gmail.com>
@ 2017-02-04 10:53 ` Inoue, Hiroshi <h-inoue@dream.email.ne.jp>
0 siblings, 0 replies; 8+ messages in thread
From: Inoue, Hiroshi @ 2017-02-04 10:53 UTC (permalink / raw)
To: Daniil Megrabyan <danil.megrabjan@gmail.com>; +Cc: pgsql-odbc
Hi Daniil,
On 2017/02/04 17:44, Daniil Megrabyan wrote:
>> 4 февр. 2017 г., в 11:30, Inoue, Hiroshi <h-inoue@dream.email.ne.jp> написал(а):
>>
>>> 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
>> Mylog isn't an option, instead try
>>
>> Debug = 1
>>
>> Possibly you will find /tmp/mylog_xxxx.
> Bingo! It works for tiny example with isql when I put Debug option into odbc.ini(for DSN). Is there is any way to enable this option for all driver(in odbcinst.ini) connections? When I’m trying my real life example(with DSNless connections) the mylog, unfortunately, does not appear.
There's no way to enable this option at once for all driver connections.
The option is for debug and makes rather heavy demands on execution..
For DSNless connections, use connection strings like
Driver=PostgreSQL;server=localhost;.database=abra1;...;Debug=1
regards,
Hiroshi Inoue
> Thank you.
>
> — 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
^ permalink raw reply [nested|flat] 8+ messages in thread
end of thread, other threads:[~2017-02-04 10:53 UTC | newest]
Thread overview: 8+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2017-02-03 17:15 MyLog and CommLog options Daniil Megrabyan <danil.megrabjan@gmail.com>
2017-02-04 01:08 ` Inoue, Hiroshi <h-inoue@dream.email.ne.jp>
2017-02-04 06:38 ` Daniil Megrabyan <danil.megrabjan@gmail.com>
2017-02-04 07:45 ` Inoue, Hiroshi <h-inoue@dream.email.ne.jp>
2017-02-04 07:51 ` Daniil Megrabyan <danil.megrabjan@gmail.com>
2017-02-04 08:30 ` Inoue, Hiroshi <h-inoue@dream.email.ne.jp>
2017-02-04 08:44 ` Daniil Megrabyan <danil.megrabjan@gmail.com>
2017-02-04 10:53 ` Inoue, Hiroshi <h-inoue@dream.email.ne.jp>
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