pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Read Postgres Log remotely
2+ messages / 1 participants
[nested] [flat]

* Read Postgres Log remotely
@ 2014-06-11 18:34  Eduardo Sá dos Reis <eduardoreis@pjf.mg.gov.br>
  0 siblings, 1 reply; 2+ messages in thread

From: Eduardo Sá dos Reis @ 2014-06-11 18:34 UTC (permalink / raw)
  To: pgsql-admin

Hi,

I need to read files postgres log remotely.
I'm using the command:

pg_read_file select ('pg_log/postgresql-2014-06-11_000000.log', 0, 
10000000);

The result is just the first line of the file.

How do I read every line of the file??

Grateful.
Eduardo Reis



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



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

* Read Postgres Log remotely
@ 2014-06-11 18:39  Eduardo Sá dos Reis <eduardoreis@pjf.mg.gov.br>
  parent: Eduardo Sá dos Reis <eduardoreis@pjf.mg.gov.br>
  0 siblings, 0 replies; 2+ messages in thread

From: Eduardo Sá dos Reis @ 2014-06-11 18:39 UTC (permalink / raw)
  To: pgsql-admin

Hi,

I need to read files postgres log remotely.
I'm using the command:

select pg_read_file('pg_log/postgresql-2014-06-11_000000.log' , 0 , 
10000000);

The result is just the first line of the file.

How do I read every line of the file?

Grateful.
Eduardo Reis




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



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


end of thread, other threads:[~2014-06-11 18:39 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2014-06-11 18:34 Read Postgres Log remotely Eduardo Sá dos Reis <eduardoreis@pjf.mg.gov.br>
2014-06-11 18:39 ` Eduardo Sá dos Reis <eduardoreis@pjf.mg.gov.br>

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