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 1tcoGP-002pom-76 for pgsql-general@arkaria.postgresql.org; Tue, 28 Jan 2025 16:16:33 +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 1tcoGO-001uwq-Ae for pgsql-general@arkaria.postgresql.org; Tue, 28 Jan 2025 16:16:32 +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 1tcoGN-001uwi-EW for pgsql-general@lists.postgresql.org; Tue, 28 Jan 2025 16:16:31 +0000 Received: from fhigh-a2-smtp.messagingengine.com ([103.168.172.153]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tcoGK-001y3o-0W for pgsql-general@postgresql.org; Tue, 28 Jan 2025 16:16:30 +0000 Received: from phl-compute-03.internal (phl-compute-03.phl.internal [10.202.2.43]) by mailfhigh.phl.internal (Postfix) with ESMTP id 5AF5011401C3; Tue, 28 Jan 2025 11:16:27 -0500 (EST) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-03.internal (MEProxy); Tue, 28 Jan 2025 11:16:27 -0500 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:subject:subject:to:to; s=fm2; t=1738080987; x=1738167387; bh=kJCUUetuUrlVOAg6E0BNDmvaRGakLEd3qhMmE1nWnyo=; b= pWEUJm04mNp3Lrsmk3ZpH5W5lqhKRIJNVUZFI70Zu34ejQ8OqAFt6NlWGrUW1Aq6 lCd+cL8+eAjFOLtvREGlSayoz/c/uZJbVRQylt4XBdfhNcTWhuL+GOiA1h3omNj0 WJljs27f4RULuHloITbCamVJbw8wMuL8AJIgTD/v+Qj3TROtXJlFG8NTWYy1V7Yy XhImMk538YVdHSARWsCfK/q4a+MpRQuUBST6T6gd2N5RfJRQy+xRbVEqJrNUhkCW Lmnuw8mT67yiVCQk93H2F6/aFziujMGyzACRLRWGKlaGANKCT5xwBjTht/fYm8Oy 2L8tedD9XbDbuYPXhuJIsA== 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:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1738080987; x= 1738167387; bh=kJCUUetuUrlVOAg6E0BNDmvaRGakLEd3qhMmE1nWnyo=; b=B Bi9tCw7B6/yERja8PaUZ3C3+GiD1Quc+OtsgO2EzgPjq8Do/TYuYr8H5J56fMWNd XlClw3ljqInLrzfrMz93Oi4iSj3wQPra3TZv0QCO3DNUN4rsx5diH3HMJu1RCstt iDqVJY1B66hG+nQF3XKMj4vLPPMwxjgfNlTP9fFUX0HwLfQiS3XO5fE5+4TQhZ52 hVtauLKNsa4NHVW64Ydn2OWB8tMuE57P3189QPVyhJes06lLUVJ0tSfwwVk5mPsl Ai/6rELd3lFnakwdIzDw7B5BEmN/Ohh0TZQ8wBddCs5ZjgrIYsyv7O5BjzEfie8u MXhdwrykza5xBK8bCzVCA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgdehgecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdpuffr tefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnth hsucdlqddutddtmdenucfjughrpefkffggfgfuvfevfhfhjggtgfesthekredttddvjeen ucfhrhhomheptegurhhirghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrse grkhhlrghvvghrrdgtohhmqeenucggtffrrghtthgvrhhnpeefgeefieeutdfggfetgefg heekjeehteeileeigfetieekjedvieeviefgheevtdenucevlhhushhtvghrufhiiigvpe dtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrughrihgrnhdrkhhlrghvvghrsegrkhhl rghvvghrrdgtohhmpdhnsggprhgtphhtthhopeefpdhmohguvgepshhmthhpohhuthdprh gtphhtthhopehprghulhgsrhhinhguuhhsrgekkeesghhmrghilhdrtghomhdprhgtphht thhopehlrghurhgvnhiirdgrlhgsvgestgihsggvrhhtvggtrdgrthdprhgtphhtthhope hpghhsqhhlqdhgvghnvghrrghlsehpohhsthhgrhgvshhqlhdrohhrgh X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 28 Jan 2025 11:16:26 -0500 (EST) Message-ID: Date: Tue, 28 Jan 2025 08:16:25 -0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Log retention query To: Paul Brindusa , Laurenz Albe Cc: pgsql-general References: 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 1/28/25 05:40, Paul Brindusa wrote: > @Junwang apologies, I should have mentioned thatĀ  we've tried setting up > a crontab and it has not worked. Have you got something similar working? > > @Laurenz: log_filename: postgresql-%Y-%m-%d.logĀ  -- if we redo the > syntax can we make it trigger garbage collection on 180 days? If by garbage collection you mean 'log_truncate_on_rotation: on' then you would need some pattern that would repeat after 180 days. Off the top of my head I cannot come up with one that would do that. How did you install Postgres and on what platform? > -- > Kind Regards, > Paul Brindusa > paulbrindusa88@gmail.com > -- Adrian Klaver adrian.klaver@aklaver.com