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 1ktYLx-00026P-EO for pgsql-general@arkaria.postgresql.org; Sun, 27 Dec 2020 15:53:05 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ktYLQ-0004ca-3f for pgsql-general@arkaria.postgresql.org; Sun, 27 Dec 2020 15:52:32 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ktYLO-0004cT-IZ for pgsql-general@lists.postgresql.org; Sun, 27 Dec 2020 15:52:31 +0000 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ktYLJ-0000zF-TF for pgsql-general@postgresql.org; Sun, 27 Dec 2020 15:52:29 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id CE0C65DA; Sun, 27 Dec 2020 10:52:23 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Sun, 27 Dec 2020 10:52:24 -0500 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=fm1; bh=8 Tzj16Uf1sYGrvmJnGaNsN2JH5G4r24riV1sV/OLxU4=; b=fo4tB1LW3BEDGpggN wSbNwHXLKc65PYKtoNG1PolX7I8fhUjXBaufkKcwdJyfZHPG+IjIU5elbiLJxQN7 y0wvC7Q99cEGWAQUSOU3lY9wJa8vupPaeWu7j9Ql+9YayPKt1LiCGYCmxQrPHNYw jtWnkSNkNIGc03xOrgugAqBcIWZUxQJYQCSkLJUUo7ok9ylabjSI+6qGYLkTvsaa gz300gpg9ZVen4ZMHAkmXBx3n8q3LTsktnupF9FHlWDdIHsgbbrjckFNhyVb8qDJ x3mal4TFKleAkKjERj3K0xB+RzYEhu/j8DvGaM2mfMztqGHL+CBLmiUcOJHa9tlb mBxIg== 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=fm1; bh=8Tzj16Uf1sYGrvmJnGaNsN2JH5G4r24riV1sV/OLx U4=; b=IFAftpE030BAGltClmFSRqJq2acp6Tdt0K0kjnLqQM157oWYipqmtKufo xP8jqgvh2OtyGPxF029Ehc8Foot5/Fqs/Kv1wzu8q1CGhriqyT3H+IeRm6dYoQu+ RxrHUGLL3SSCCVlGry/UuEvOjorU/7L0yaf1QVxZNkBLKqZUPs6H4IeHv9ozzcNI Tt2ODHggIkTs+1R0V4Z9aEFYxfrPvoLjYDq3u3VqPTNCYRVVpBY8wcBLp6snL6Zs oDCPtA/NkQ8gK5nTQFrOLFjtjjzC/kvkBH/J7EtnXlqLKzJ1KmyHV5qRcGdvvkwq XDIu658kGiy494jhab2Xa+KQ6hsCw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrvddujedgkeegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepuffvfhfhkffffgggjggtgfesthekredttdefjeenucfhrhhomheptegurhhi rghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtoh hmqeenucggtffrrghtthgvrhhnpeduudefjeetveffhefgudehtdfhvdetkeeiueehfeev veduteekleeuheegudehhfenucffohhmrghinhepphhoshhtghhrvghsqhhlrdhorhhgne cukfhppeejhedrudejvddrudegrddujeenucevlhhushhtvghrufhiiigvpedtnecurfgr rhgrmhepmhgrihhlfhhrohhmpegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrd gtohhm X-ME-Proxy: Received: from [192.168.1.4] (75-172-14-17.tukw.qwest.net [75.172.14.17]) by mail.messagingengine.com (Postfix) with ESMTPA id A361624005C; Sun, 27 Dec 2020 10:52:22 -0500 (EST) Subject: Re: alter system command To: Ahmet Demir , Atul Kumar Cc: Postgres General References: From: Adrian Klaver Message-ID: <43fed6b0-a35a-d39e-8bf8-9cdf8fda14c2@aklaver.com> Date: Sun, 27 Dec 2020 07:52:21 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 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 12/27/20 12:00 AM, Ahmet Demir wrote: > Hi, > > Please check postgresql.auto.conf file. > https://www.postgresql.org/docs/13/sql-altersystem.html > For a more generic option do: select * from pg_settings where name = 'archive_command'; https://www.postgresql.org/docs/12/view-pg-settings.html pg_settings will tell you where the server is getting a particular setting from. > > Ahmet > > On Sun, 27 Dec 2020 at 10:53, Atul Kumar > wrote: > > hi, > > I have set archive_command like below: > > alter system set archive_command ='pgbackrest --stanza=main > archive-push %'; > > then I reloaded the conf file > > select pg_reload_conf(); > > > now when i checked it using the show command like it gave me correct > output > > postgres=# show archive_command; >              archive_command > ----------------------------------------- >  pgbackrest --stanza=main archive-push % > > > but... > > while checking the postgresql.conf file it didn't show me above > output, the parameter acrhive_command is still set with default value > > archive_command = '/bin/true/'          # command to use to archive a > logfile segment > > So please help me in giving the reason of it that even after reloading > the conf file why it didn't set the value in postgresql.conf file ? > > > Regards, > Atul > > -- Adrian Klaver adrian.klaver@aklaver.com