Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qkrBc-00H7i4-6s for pgsql-general@arkaria.postgresql.org; Mon, 25 Sep 2023 19:24:04 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1qkrBa-004LvL-EO for pgsql-general@arkaria.postgresql.org; Mon, 25 Sep 2023 19:24:02 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qkrBY-004Lus-Qt for pgsql-general@lists.postgresql.org; Mon, 25 Sep 2023 19:24:02 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qkrBV-006bZ7-Qv for pgsql-general@postgresql.org; Mon, 25 Sep 2023 19:23:59 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id AB34D5C27B4; Mon, 25 Sep 2023 15:23:56 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Mon, 25 Sep 2023 15:23:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to; s=fm1; t= 1695669836; x=1695756236; bh=eiIe4ZC7IsINMmtwBZw25pz/vXXB6NErs5p qZIxFy2k=; b=BbH4ybChctIr0SdbZGiwjHm5Qdg19Z1gTpbaw6pUWlltRNQAY+X dbAZMcTmbbBxcUcOPm0mDAmtnoNjWeyyWN3qf+sgHs++V1kOVhqclPH1o5EXKCOv CnYmQgYwbsJPRaoP3hfbFO3sLFw9e+xxGY5r1RUYU2zTaaddL5MIBgt8yhiEWoqe Of+vdNnXSur/Uysb9lsOS4cnZIa4l/ZQHH7ScdFrfpMtFwEjwJgpHKy46gBzlQ2E PMjYIE5Tpe1PrPR8fXXJzMW9Ttr840x5E6Df7QQdSduGr2OTn7U45YqG9Zake/nz vGDIzxGn8pb+4AlkTWlAxiENOFEtRQitksA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t= 1695669836; x=1695756236; bh=eiIe4ZC7IsINMmtwBZw25pz/vXXB6NErs5p qZIxFy2k=; b=mSmF0kfzRdbxM3NjgzHPVb8QmbVWX6tNWCr2SG2bgAZ8sAUN3WV Ndn7OK7Js8fMhBAvYonP6eJDx1fy/x7vYw+vEoqivI81Sz7PBYz1k3jp7Z9d0v1e JJlmfcAsONXzvaZozZl/7ydLW1ahBMXwtEjhaZQt1hhcRe/hbjADEI5Bh3JEhLQf kfWkspQ7Xd5xX0SHIwaCxHP932DFiTFpz7XBl5fy0ADW1nN0UNd5G6BzGVBBcoMv p6Ro3Vd73QOBuoBTBJ3tjhohAtmvV4Vl0YRSzLfBtoX7/34fMlPO2GNipvuOYhOV v4Hg1ekXcSzz2YGnSjdX7N8xTzRzYvLwyHQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrudelgedgudefiecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefkffggfgfuvfevfhfhjggtgfesthekredttddvjeenucfhrhhomheptegu rhhirghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrd gtohhmqeenucggtffrrghtthgvrhhnpefgudefkefhveefleevieeuveehvdduudekuddv vdelhfeuueeijedtuedvvedvueenucffohhmrghinhepphhoshhtghhrvghsqhhlrdhorh hgnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprggu rhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomh X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 25 Sep 2023 15:23:55 -0400 (EDT) Message-ID: Date: Mon, 25 Sep 2023 12:23:54 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Postgres 11.5 not logging all sqls To: shashidhar Reddy , Erik Wienhold Cc: pgsql-general References: <4rmaktkbnnhwgji2jegd5lsbmuf4t544syt3sttsdycibmnyfy@jz27gtl66ueg> Content-Language: en-US From: Adrian Klaver In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 9/25/23 11:55, shashidhar Reddy wrote: > Thank you Erik, > > Not all queries are truncated at same size,different queries different > sizes but all 11.5 servers are behaving in same manner. FYI, the last minor release for version is 11.21. You are missing 16 bug/security fixes. I would update to 11.21 and then see if the issue persists. > > > On Mon, 25 Sept, 2023, 5:33 pm Erik Wienhold, > wrote: > > On 2023-09-25 16:54 +0530, shashidhar Reddy wrote: > > We are using postgres 11.5 on Ubuntu we have enabled logging and set > > log_statements to all but when I checked the statements in the > logs I can > > see only first few lines of the query and also when I check in > pgadmin for > > current queries I could see only few lines. Some one please help > me to get > > full queries in the logs and in pgadmin4. > > * Could be that the logging collector truncates messages.  Are all >   messages truncated to the same length? > > * pgAdmin reads pg_stat_activity.query which is subject to config >   track_activity_query_size[1].  That should, however, not affect >   logging. > > * Maybe a bug 11.5 which is already 4 years old. > > [1] > https://www.postgresql.org/docs/11/runtime-config-statistics.html#GUC-TRACK-ACTIVITY-QUERY-SIZE > > -- > Erik > -- Adrian Klaver adrian.klaver@aklaver.com