pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
log file
3+ messages / 3 participants
[nested] [flat]

* log file
@ 2001-06-20 04:44 Jie Liang <jliang@ipinc.com>
  2001-06-20 10:02 ` Re: [SQL] log file Richard Huxton <dev@archonet.com>
  0 siblings, 1 reply; 3+ messages in thread

From: Jie Liang @ 2001-06-20 04:44 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-sql; pgsql-admin@postgresql.org

Tom,

We turn on the log file by:
In file 'postgresql.conf'
syslog = 2 # range 0-2
syslog_facility = 'LOCAL0'
syslog_ident = 'postgres'

1. It seems that postmaster writes stuff undef /db/pgsql/pg_xlog
   (they are not text files).
2. the log file I expected (I want log include SQL statement and ERROR)
   Just have NOTICE and DEBUG info.

How to choose these options??

Thanks.


Jie LIANG

St. Bernard Software

10350 Science Center Drive
Suite 100, San Diego, CA 92121
Office:(858)320-4873

jliang@ipinc.com
www.stbernard.com
www.ipinc.com





^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: [SQL] log file
  2001-06-20 04:44 log file Jie Liang <jliang@ipinc.com>
@ 2001-06-20 10:02 ` Richard Huxton <dev@archonet.com>
  2001-06-20 14:54   ` Re: [SQL] log file Josh Berkus <josh@agliodbs.com>
  0 siblings, 1 reply; 3+ messages in thread

From: Richard Huxton @ 2001-06-20 10:02 UTC (permalink / raw)
  To: Jie Liang <jliang@ipinc.com>; Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-sql; pgsql-admin@postgresql.org

From: "Jie Liang" <jliang@ipinc.com>

> Tom,
>
> We turn on the log file by:
> In file 'postgresql.conf'
> syslog = 2 # range 0-2
> syslog_facility = 'LOCAL0'
> syslog_ident = 'postgres'
>
> 1. It seems that postmaster writes stuff undef /db/pgsql/pg_xlog
>    (they are not text files).

pg_xlog stuff is WAL related (Ch 9 Administrators guide)

> 2. the log file I expected (I want log include SQL statement and ERROR)
>    Just have NOTICE and DEBUG info.

I *think* you want DEBUG_PRINT_QUERY and its friends. See Ch 3.4.2 of the
Administrators Guide.

HTH

- Richard Huxton




^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: [SQL] log file
  2001-06-20 04:44 log file Jie Liang <jliang@ipinc.com>
  2001-06-20 10:02 ` Re: [SQL] log file Richard Huxton <dev@archonet.com>
@ 2001-06-20 14:54   ` Josh Berkus <josh@agliodbs.com>
  0 siblings, 0 replies; 3+ messages in thread

From: Josh Berkus @ 2001-06-20 14:54 UTC (permalink / raw)
  To: Richard Huxton <dev@archonet.com>; Jie Liang <jliang@ipinc.com>; +Cc: pgsql-sql; pgsql-admin@postgresql.org

Richard, Jiang,

> I *think* you want DEBUG_PRINT_QUERY and its friends. See Ch 3.4.2 of
> the
> Administrators Guide.

Actually, Jiang need to re-start the postmaster with the command-line
options for logging set.  Annoyingly, the default init.d script for
Postgres in most RPMs starts Postgres without any logging.

Unfortunately, I'm at a remote terminal right now, so I can't post an
example.

-Josh Berkus


______AGLIO DATABASE SOLUTIONS___________________________
                                       Josh Berkus
  Complete information technology      josh@agliodbs.com
   and data management solutions       (415) 565-7293
  for law firms, small businesses        fax 621-2533
    and non-profit organizations.      San Francisco



^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2001-06-20 14:54 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-06-20 04:44 log file Jie Liang <jliang@ipinc.com>
2001-06-20 10:02 ` Richard Huxton <dev@archonet.com>
2001-06-20 14:54   ` Josh Berkus <josh@agliodbs.com>

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