Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1luE8F-0005v1-O6 for pgsql-admin@arkaria.postgresql.org; Fri, 18 Jun 2021 13:01:59 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1luE7j-0000gL-3f for pgsql-admin@arkaria.postgresql.org; Fri, 18 Jun 2021 13:01:27 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1luE7i-0000gD-Lm for pgsql-admin@lists.postgresql.org; Fri, 18 Jun 2021 13:01:26 +0000 Received: from mail-ed1-x534.google.com ([2a00:1450:4864:20::534]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1luE7f-0006lD-In for pgsql-admin@postgresql.org; Fri, 18 Jun 2021 13:01:26 +0000 Received: by mail-ed1-x534.google.com with SMTP id c7so7597180edn.6 for ; Fri, 18 Jun 2021 06:01:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec-at.20150623.gappssmtp.com; s=20150623; h=message-id:subject:from:to:date:in-reply-to:references:user-agent :mime-version:content-transfer-encoding; bh=um29BsS1xeVHseGG4epcd53/yXj7XfyXdjkxkkF46Gs=; b=Z48tniE2d5UIkJ4M+AUTQMW884Jwbr6dVrAtAhQI4uScpM0qqri4lemV0xxVb8QOq8 ZLbEflC04BQkW7xLieXC4qfxJIkZLYhPUryuWOtHtWM2xAIJR8SGcj7m1fCI2CBzOrtH LZ0jrV76S3YukCsIB/J2Nawsqq6Fu4QKx6BxiYZ/zpnXHTMKmpRaUO3S++izpKPGx67c k9g07AA6wAWFL2izwrQ2tEgPhmZCcGPBlog4Jp8lbXzH4Y6L50PHVBy/5Xa3mxozOCRw YBQbNx4Q392xXwvYGJAKkpMy318CobBao/e+eXp/46jxeDmTxLWDmPE2ccdSBJym2hOO B12A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=um29BsS1xeVHseGG4epcd53/yXj7XfyXdjkxkkF46Gs=; b=W6/zsitYxdQ9Kh6w/EHKimwrN0bdGVwwzWdnJw5zJk6Ay9zcFjJ0RDi5jqEMfB0VPg jIrArC944fhrI3HvRqA0B47lT72Xti3D4A05VpmK8TR2WfQXTyvpVwWL4pPO/rltgOfb sT6pRm2dmNIbBa9Oi3hMobPApYNc285652pRCWbIuXyogJ5o67CSa5kIngsRsvmhm96/ 9nla+gBo9BVbUKQPzAdjwtn9UV1D4KR2tFDcTJJlne6As67UzLyTZp1DClMcips1zivJ DMqCnER+NW5zjmnFxcBe4rQpQ4fdiyi64ya0WTwejX3fjYe53ckzgvMNtshEeJZqyUsg tJuQ== X-Gm-Message-State: AOAM531C/R4156F7cUwFi+HH3G44OVtsxvJtGnjv9Hussi2laCajHFQS iGL7mCyhoWiXC0suJlm+vmbIQg== X-Google-Smtp-Source: ABdhPJz3Fvu3hZ6eZpJzL1yqTqgjHw6LnkhPMpcz2/dCyiBHJFn5Nxm3Oo+GryjM0GXD45miuXO7WQ== X-Received: by 2002:aa7:dd43:: with SMTP id o3mr4713979edw.302.1624021281714; Fri, 18 Jun 2021 06:01:21 -0700 (PDT) Received: from localhost.localdomain (217-149-169-135.nat.highway.telekom.at. [217.149.169.135]) by smtp.gmail.com with ESMTPSA id hx26sm524269ejc.34.2021.06.18.06.01.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 18 Jun 2021 06:01:21 -0700 (PDT) Message-ID: <587f7194beefde8a927bcb3e8274fb4f536e4b62.camel@cybertec.at> Subject: Re: STDERR not logging after a fix log size From: Laurenz Albe To: still Learner , pgsql-admin Date: Fri, 18 Jun 2021 15:01:20 +0200 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.5 (3.36.5-2.fc32) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Fri, 2021-06-18 at 14:32 +0530, still Learner wrote: > A few days back (on 9th June) I have changed my log_rotation_size to 30 MB and on > the same day again reset to 500 MB. for few days it went well, from 15th June itself > generating only 30MB files. Now I have reset to 700 MB and reloaded, still am getting > the same size of log and the log file is also not rotating. > > -rw------- 1 postgres postgres 32885638 Jun 9 07:04 postgresql-2021-06-09_000000.log > -rw------- 1 postgres postgres 10765412 Jun 9 23:59 postgresql-2021-06-09_214301.log > -rw------- 1 postgres postgres 114219472 Jun 11 00:00 postgresql-2021-06-10_000000.log > -rw------- 1 postgres postgres 106193384 Jun 11 23:59 postgresql-2021-06-11_000000.log > -rw------- 1 postgres postgres 103008728 Jun 12 23:59 postgresql-2021-06-12_000000.log > -rw------- 1 postgres postgres 104213596 Jun 14 00:00 postgresql-2021-06-13_000000.log > -rw------- 1 postgres postgres 109578809 Jun 14 23:59 postgresql-2021-06-14_000000.log > -rw------- 1 postgres postgres 30847172 Jun 15 08:02 postgresql-2021-06-15_000000.log > -rw------- 1 postgres postgres 32452541 Jun 16 06:22 postgresql-2021-06-16_000000.log > -rw------- 1 postgres postgres 31439856 Jun 17 06:20 postgresql-2021-06-17_000000.log > -rw------- 1 postgres postgres 30859375 Jun 18 06:23 postgresql-2021-06-18_000000.log That looks just like you want. The log file never reached the size limit, so it never rotated. Yours, Laurenz Albe -- Cybertec | https://www.cybertec-postgresql.com