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 1hoDro-0006NY-P4 for pgsql-general@arkaria.postgresql.org; Thu, 18 Jul 2019 21:23:08 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hoDqp-00034e-FM for pgsql-general@arkaria.postgresql.org; Thu, 18 Jul 2019 21:22:07 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hoDqp-00034X-5s for pgsql-general@lists.postgresql.org; Thu, 18 Jul 2019 21:22:07 +0000 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hoDqk-0002Ri-3U for pgsql-general@lists.postgresql.org; Thu, 18 Jul 2019 21:22:06 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 429902FC; Thu, 18 Jul 2019 17:21:58 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Thu, 18 Jul 2019 17:21:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:cc:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm3; bh=E srtCSsqImJFwElNP9eVtmZfJpcONr3aHgEpoUO3xVs=; b=X3k9RpuRwPTkFsqAh 3JNOopAqfWbNefd6rSl9nlZvxE+3y69mDQD1tnQoBMsQt+YbHEn1zrz1bHkTprK6 dJE1DjYq9v32IcPCtA5WKDZDx0XTiR7nEA3YeIBPXT5J1UgPkXLZxhys5ebtHM6Y R7CEI5KG52OFmcy5g7P4tRaqxlADQIqQXSuHrOLK/UR/x5Lvp0DQh5am4hj2ugsM F8ldFEb6LKgd1j+UXY/3D2LuCRUr4f+6jTlBiso6MkbUimhPHaLu9P5H1sKeOgLj dq8VwCP1WWYFoUbC4Z1RwHjkPtYEHxkQPUKY49PabMM+DhzKssG5khG9gardrf2K r0CvQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=EsrtCSsqImJFwElNP9eVtmZfJpcONr3aHgEpoUO3x Vs=; b=g4ep1BT2QjmYC6zLyyaMMFcydHEcSKaZO/Gh6VypPLq15MfJNAgFeEcdp 7p61xxVk+KmsFssZvkADfZGpvpQE4DeSS9ZKnvULQQPBDaayP9zkDuEEMBvsUzCI a3eqLu90sv2Xe2qUr9/YSwwo0ooRhhSDgRVlUgVzQI8LLjqYQ3oRSqUxfVfza/vk RB7SEoalvOGy/uPaGNtZS7rf8fOf4Q8FU0mlOCm/wzQ+oRVKdBDVE+uRhhUo7DQx pBL9ikJ0QyFllYYPFfC2KpUcuSxsEBjy95JBlIwuxcwe/QwndTOpYxMIFtzbFZPi ANoQU3N/mMeMPJacKp8JMsPSQmE5A== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduvddrieehgdduieegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepuffvfhfhkffffgggjggtgfesthekredttdefjeenucfhrhhomheptegurhhi rghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtoh hmqeenucffohhmrghinhepphhoshhtghhrvghsqhhlrdhorhhgnecukfhppeehtddrudel jedrkedtrddvnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrughrihgrnhdrkhhlrghvvg hrsegrkhhlrghvvghrrdgtohhmnecuvehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: from ranger.suse (50-197-80-2-static.hfc.comcastbusiness.net [50.197.80.2]) by mail.messagingengine.com (Postfix) with ESMTPA id E65DF80061; Thu, 18 Jul 2019 17:21:56 -0400 (EDT) Subject: Re: Possible Values of Command Tag in PG Log file To: Melvin Davidson , "Kumar, Virendra" Cc: "pgsql-general@lists.postgresql.org" References: <017631fc00d54ecfa22187907c74e66a@USFKL11XG20CN01.mercer.com> <6d81927f36574137be35cadd91b2e8ce@USFKL11XG20CN01.mercer.com> From: Adrian Klaver Message-ID: Date: Thu, 18 Jul 2019 14:21:56 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 7/18/19 2:13 PM, Melvin Davidson wrote: > > The values and explanations are listed here: > https://www.postgresql.org/docs/11/protocol-message-formats.html > > Or simply INSERT, UPDATE, DELETE, SELECT, MOVE, FETCH and/or COPY Except the OP shows a command that is not in the above, authentication. Also this: https://www.postgresql.org/docs/11/event-trigger-interface.html The command tag associated with the event for which the event trigger is run, for example "CREATE FUNCTION". I suspect it comes from the commands listed here: /src/include/commands /src/backend/commands How to pull out the complete list is beyond me at the moment. > > On Thu, Jul 18, 2019 at 5:04 PM Kumar, Virendra > > wrote: > > Here is it: > -- > https://www.postgresql.org/docs/10/protocol-message-formats.html > > CommandComplete (B), string value of this section. > > I loaded log file (csv format) into postgres_log table as per below > document and can see entries like: > https://www.postgresql.org/docs/10/runtime-config-logging.html > > postgres=# select command_tag from postgres_log where command_tag is > not null limit 5; >   command_tag > ---------------- > > > >  authentication > > (5 rows) > > Regads, > Virendra > > > -----Original Message----- > From: Adrian Klaver [mailto:adrian.klaver@aklaver.com > ] > Sent: Thursday, July 18, 2019 4:55 PM > To: Kumar, Virendra; pgsql-general@lists.postgresql.org > > Subject: Re: Possible Values of Command Tag in PG Log file > > On 7/18/19 12:58 PM, Kumar, Virendra wrote: > > Hello Team, > > > > Can somebody redirect me to document which lists all possible > value of > > command tag in instance log of PostgreSQL instance. > > Can you show example of a command tag in the log? > > > > > Regards, > > > > Virendra > > > > > > > ------------------------------------------------------------------------ > > > > This message is intended only for the use of the addressee and > may contain > > information that is PRIVILEGED AND CONFIDENTIAL. > > > > If you are not the intended recipient, you are hereby notified > that any > > dissemination of this communication is strictly prohibited. If > you have > > received this communication in error, please erase all copies of > the message > > and its attachments and notify the sender immediately. Thank you. > > > -- > Adrian Klaver > adrian.klaver@aklaver.com > > ________________________________ > > This message is intended only for the use of the addressee and may > contain > information that is PRIVILEGED AND CONFIDENTIAL. > > If you are not the intended recipient, you are hereby notified that any > dissemination of this communication is strictly prohibited. If you have > received this communication in error, please erase all copies of the > message > and its attachments and notify the sender immediately. Thank you. > > > > > -- > *Melvin Davidson** > Maj. Database & Exploration Specialist** > Universe Exploration Command – UXC*** > Employment by invitation only! -- Adrian Klaver adrian.klaver@aklaver.com