From: Ron <ronljohnsonjr@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: Which queries have run query trace form .exe.
Date: Mon, 7 Jan 2019 07:49:16 -0600
Message-ID: <0489019f-46dc-575a-5b16-82a554f29380@gmail.com> (raw)
In-Reply-To: <CAGQddzzcRjTsR3s+XfpWm9ZuBuymZyaekEtmfFHKNcCR-cPLpg@mail.gmail.com>
References: <CAGQddzzcRjTsR3s+XfpWm9ZuBuymZyaekEtmfFHKNcCR-cPLpg@mail.gmail.com>
On 1/7/19 6:52 AM, Vimal Kanzariya wrote:
> *Hello,*
>
> I need find out some database operation which is executed form One of the
> .exe. I have installed that .exe into my system and once i executed that
> .exe it is executed some operation into PostgreSQL 9.5 (version 1.22.1).
> So i want to know what operation done by that .exe into which table. is
> there any tool or any other way to find out database operation executed
> form .exe.?
Look at the log_* options in postgresql.conf.
https://www.postgresql.org/docs/9.5/runtime-config-logging.html
Here's an example:
log_destination = 'stderr'
logging_collector = on
log_directory = '/Database/9.6/pg_log'
log_filename = 'postgresql-%F_%H.log'
log_truncate_on_rotation = off
log_rotation_age = 1h
log_rotation_size = 0
client_min_messages = log
log_min_messages = info
log_min_error_statement = info
log_line_prefix = '%m %r %u %d %p %i %a %e '
--
Angular momentum makes the world go 'round.
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-general@postgresql.org
Cc: ronljohnsonjr@gmail.com
Subject: Re: Which queries have run query trace form .exe.
In-Reply-To: <0489019f-46dc-575a-5b16-82a554f29380@gmail.com>
References: <CAGQddzzcRjTsR3s+XfpWm9ZuBuymZyaekEtmfFHKNcCR-cPLpg@mail.gmail.com> <0489019f-46dc-575a-5b16-82a554f29380@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