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 1o985b-00014b-8B for pgsql-hackers@arkaria.postgresql.org; Wed, 06 Jul 2022 16:41:23 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1o985Y-00069z-PT for pgsql-hackers@arkaria.postgresql.org; Wed, 06 Jul 2022 16:41:20 +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 1o985Y-00069q-EV for pgsql-hackers@lists.postgresql.org; Wed, 06 Jul 2022 16:41:20 +0000 Received: from mail-pl1-x62e.google.com ([2607:f8b0:4864:20::62e]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1o985R-0000bV-Cd for pgsql-hackers@postgresql.org; Wed, 06 Jul 2022 16:41:20 +0000 Received: by mail-pl1-x62e.google.com with SMTP id 5so8215745plk.9 for ; Wed, 06 Jul 2022 09:41:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=ZfMuVKa64RNREgIsG6+jyxQLVjl4+DXFr7uVU7RINe4=; b=LxsPj3tubFChNPi2yyzGGfE/6Tx538u0sZje4YgJVK2LcEQeT4dKx4NfLxsmdzysSY M4VpMOm+JVeaeOjiqG8MMeJgLmjTOf2nRJJULfMAaLut2nCAX8KA43Ce03+2/0xBJ9Gw 2AbIgrHsedGh4S8556JXETcrmoBo6/kHY40MsR21CJ4wT8Q1i5J0u31e6DNBfv7wpJ46 sd0Ued40GaLuc3WgAQ+kcvKt1CFdOV2YgdHOSEyDVH/Xjk8up4gN4J5PAx77i2chlnou EJXFjx4CN3eedlQPRE9KMHygcvAyC7SQbETqlfkdcTHS+Wy3mOsKNaEjEBTJi+t7PdEJ zpTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=ZfMuVKa64RNREgIsG6+jyxQLVjl4+DXFr7uVU7RINe4=; b=qB31b4ewk9J4eWuynA6b9B6k2tA9g0QPxVgawcN9HmsyKkkDw7+9EJdTe0GbibxhlG Lfr3yBxm95aYCt6iZ5hipzY+KFRzAP8DCL1dnyIzJRN05PdpGKGgnwY9Ng/TBMbRr6GB 6bs6TOSzO10wQxoAc3f6ASBPIIHDcj4cPdSyvOUMdDDeNGf0PrPnLTxB/VbLYMvNFXGR Zt4BiyO9m9Np0ItFlk03LkUB6uqv3o35J//d0FlUhN5h5osDr/aLlA3xw0JPsTxu5Ds0 AofB9EKe2ZsaK8mLxLo2xRX/b9cP1jvUcDeoGPuNYFHEHUUNupzROFZ/Q8UbauEKuJR+ 4+BA== X-Gm-Message-State: AJIora/Ou1vP49MJxEMlBeaVT0c5qdR319aDAzypWVohlJsaOL9LXG16 DEgnD9XYVsNot6SU0uNUl/g= X-Google-Smtp-Source: AGRyM1vgyU55ECsj00ZQOcfAo9s4xOyG6+yg6UemEkP35JIHA1wG/xnhPJ6vVnHyhI019Sc2xMETiA== X-Received: by 2002:a17:90b:1a84:b0:1ec:c46f:e150 with SMTP id ng4-20020a17090b1a8400b001ecc46fe150mr52046981pjb.36.1657125670873; Wed, 06 Jul 2022 09:41:10 -0700 (PDT) Received: from nathanxps13 ([50.54.155.70]) by smtp.gmail.com with ESMTPSA id p6-20020a170902780600b0016a4db13429sm25933833pll.192.2022.07.06.09.41.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Jul 2022 09:41:08 -0700 (PDT) Date: Wed, 6 Jul 2022 09:41:05 -0700 From: Nathan Bossart To: talk to ben Cc: Robert Haas , "Bossart, Nathan" , David Steele , Fujii Masao , "pgsql-hackers@postgresql.org" , Michael Paquier , Magnus Hagander , Stephen Frost Subject: Re: archive modules Message-ID: <20220706164105.GA2135371@nathanxps13> References: <20220202224433.GA1036711@nathanxps13> <20220203192747.GA1080581@nathanxps13> <20220203211121.GA1081379@nathanxps13> <20220203212539.GA1082940@nathanxps13> <20220203215537.GA1123901@nathanxps13> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, Jul 06, 2022 at 06:21:24PM +0200, talk to ben wrote: > I am not sure why, but I can't find "basic_archive.archive_directory" in > pg_settings the same way I would find for example : > "pg_stat_statements.max". > > [local]:5656 benoit@postgres=# SELECT count(*) FROM pg_settings WHERE name > = 'basic_archive.archive_directory'; > count > ------- > 0 > (1 row) > > show can find it if I use the complete name but tab completion can't find > the guc: > > [local]:5656 benoit@postgres=# show basic_archive.archive_directory; > basic_archive.archive_directory > --------------------------------- > /home/benoit/tmp/tmp/archives > (1 row) I think the reason is that only the archiver process loads the library, so the GUC isn't registered at startup like you'd normally see with shared_preload_libraries. IIUC the server will still create a placeholder GUC during startup for custom parameters, which is why it shows up for SHOW commands. -- Nathan Bossart Amazon Web Services: https://aws.amazon.com