Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ggVHQ-00014u-Ie for pgsql-general@arkaria.postgresql.org; Mon, 07 Jan 2019 13:49:24 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ggVHP-00045C-9p for pgsql-general@arkaria.postgresql.org; Mon, 07 Jan 2019 13:49:23 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ggVHO-00044p-RJ for pgsql-general@lists.postgresql.org; Mon, 07 Jan 2019 13:49:23 +0000 Received: from mail-oi1-x241.google.com ([2607:f8b0:4864:20::241]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ggVHL-0003w0-UD for pgsql-general@lists.postgresql.org; Mon, 07 Jan 2019 13:49:21 +0000 Received: by mail-oi1-x241.google.com with SMTP id x23so342074oix.3 for ; Mon, 07 Jan 2019 05:49:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language; bh=trRvAWu69EfDi0VA2OiXPdCOoP6ubibq+w8bPpxlWb4=; b=uXsVLiwcYNtdrANsJ1+FIAFj+T69WIOYQW+bvt2kGHl1XZnMsq04NW9QJo55mTwY7W 6Tx6yIfWKpA5NbznMoIEotI9kNc8SqWuTOvPep5MwXNWS4pml9Zj9z/nML8TFWShHjKm GHWuLlJLQJJpVAaxF875HUTyPjINC7ueD6jLGXrHm+mg1vIcR3brmggi418BD4Rz1X1D uyicm77IAmB0s418TCynAMAo2bQ2ostFL0g5siY3Q+q7bRLTL8sBBan/CX0u81/pXLGZ P1QR/fNxidM37QWoq56LhyhpF6iRWwZiRzArkaW2Ttn7F7/33N60MQ3VUJ2wFlReGebA BIqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language; bh=trRvAWu69EfDi0VA2OiXPdCOoP6ubibq+w8bPpxlWb4=; b=IIWxMQUX9/QcR70tWUWPlbtkjp3IxWgSsX/dc6bLPMzZ72Vk44oCgIf4ak1GDaAQiB Td4Z7v9cOUU7P/Snh7rCUov+v6iw1CsJVzYf//cu3wJXQl0GFjS7Zt1hqnsj11USkV+V pk3W1p9vCelF+V8UBkGKtPZOlYm+EZyTwsjaKgtzjuwS1Ohs2RyICtRZ4vuulnxTuQX2 /n0rTehlRUEoIJLOYzea10vrTGF5sXiMJN8u8A8/wQbTS1dP9OTGxpkrya7r8inxXJcO ByFOJjhiGNbmKUMlOzVEmkFuUvI3c9U8+iV3f0XysLBPeER30eQmS9ukAHIg8UT4EPVQ IPzA== X-Gm-Message-State: AJcUukdEcHrbNQ1NmV9si2zkKiUQXn0QrzwLKs9wlM4o7SvmqnsSsO/i 6h764RzW9mJY9SNdaiQzpdjM0xDk X-Google-Smtp-Source: ALg8bN7CP+uMiDbuNHKwjvQ28GD9HMlY1UnYDWmFm94etfqbt+eWFS+VRXUvuLp5ed0JR65GRpS2xQ== X-Received: by 2002:aca:5b43:: with SMTP id p64mr7690908oib.41.1546868958075; Mon, 07 Jan 2019 05:49:18 -0800 (PST) Received: from [192.168.1.10] (ip70-171-116-89.no.no.cox.net. [70.171.116.89]) by smtp.googlemail.com with ESMTPSA id e6sm31541072otp.68.2019.01.07.05.49.17 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 07 Jan 2019 05:49:17 -0800 (PST) Subject: Re: Which queries have run query trace form .exe. To: pgsql-general@lists.postgresql.org References: From: Ron Message-ID: <0489019f-46dc-575a-5b16-82a554f29380@gmail.com> Date: Mon, 7 Jan 2019 07:49:16 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/alternative; boundary="------------25E71BD84796080B178B6E37" Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk This is a multi-part message in MIME format. --------------25E71BD84796080B178B6E37 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit 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. --------------25E71BD84796080B178B6E37 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit 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.
--------------25E71BD84796080B178B6E37--