Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fiIBB-0004Ef-V2 for pgsql-admin@arkaria.postgresql.org; Wed, 25 Jul 2018 11:42:06 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fiIBA-0007u6-0d for pgsql-admin@arkaria.postgresql.org; Wed, 25 Jul 2018 11:42:04 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fiIB9-0007tz-N9 for pgsql-admin@lists.postgresql.org; Wed, 25 Jul 2018 11:42:03 +0000 Received: from mail-oi0-x22f.google.com ([2607:f8b0:4003:c06::22f]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1fiIB6-0000fd-Or for pgsql-admin@postgresql.org; Wed, 25 Jul 2018 11:42:02 +0000 Received: by mail-oi0-x22f.google.com with SMTP id n21-v6so13297574oig.3 for ; Wed, 25 Jul 2018 04:42:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=echW1sxT6+Emm/JZS6rL8we7op5eqMMB464mnChFgyI=; b=YzVSezLSGk7/S5Rf89U1ChBHF0VQKnYu8mRqGm+4YQ+AoqBs9peukYwb69TfBXWw5t wWsOd/lVJFkHAA7DAVwNCD2ObDsnrOni4M/h7ImnN+EB4IyBCTnZqmVPiqBtCMTG7N0b bmy4y8qcfbQKTTY/dQ1IVEbmbmrRwmak9zuj6J6yr8kmtFT1j5VX6qbL9454eKEbVsCJ gtcjIsAU+oSGbRj4GCFh44hkpOp+LRllHB26y0sNZVzW4DLosy3rlzEtPOs6m5PZml8X akiViZRN0+EIOL8XFDOgMImFTjYTsIAJO0Bhf6kJgNPa6qKKClk/QqIc02xXTROF8b7w kOkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=echW1sxT6+Emm/JZS6rL8we7op5eqMMB464mnChFgyI=; b=YHZKudCL7W4No4FTxXQ0it2uFUge3SOpFOyQPjSodWVHMc/aOXwqwlaguGY3I1hefk FYhVEDQZ45Eez5Dk3cAmbBjTSHKZ+C6/B+oX+QeVIt8K7n/Sifu40EmXzvs/6qG0uc8I 9W2splP3DWBQO+qDWVqsI6K3O1SKLePocuKpNlZZ4caoqBJIXRkLzBEw18Izfd982oKo XKOMPKG4velzzs3ZZr06C+SiVkKRHFMYb1QvTLrf9ikGxID9yQOjTLIb/o81Nmgi/yND IfJYWFZMjpWl8t1X2uLFVVIok1EP1kQ1mCw2ZQoT06Sm3Ql/S71Ng+UQcxHWivajSqFh 6Aog== X-Gm-Message-State: AOUpUlGctWQUGgCEhyN7smCH+lZkg7Y12PiKrlDR1avdNnae9nEhmP4d r6cSvZwc7nEVs9IbNEnIrxFUhwGVZ3R1beIJgYDW5E/0 X-Google-Smtp-Source: AAOMgpdIgcd+oyvlLyi58kGRdeD5MgP4vF0KsWalHFgbvW3NQMkn4GesMefEsdKjYCikWmQdjoD/8WlniGCIjzTWqLg= X-Received: by 2002:aca:42:: with SMTP id 63-v6mr2755220oia.154.1532518918578; Wed, 25 Jul 2018 04:41:58 -0700 (PDT) MIME-Version: 1.0 From: Kouber Saparev Date: Wed, 25 Jul 2018 14:41:47 +0300 Message-ID: Subject: Protected custom configuration option To: pgsql-admin@postgresql.org Content-Type: text/plain; charset="UTF-8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hello, I am looking for a way to define custom configuration option that will only be accessible to roles with the "pg_read_all_settings" privilege. I see such variables defined with the GUC_SUPERUSER_ONLY flag within src/backend/utils/misc/guc.c: {"ssl_ecdh_curve", PGC_SIGHUP, CONN_AUTH_SSL, gettext_noop("Sets the curve to use for ECDH."), NULL, GUC_SUPERUSER_ONLY }, &SSLECDHCurve, Is it possible to have a custom setting defined with this flag and how? Only through an extension written in C, maybe? What I need is something like: kouber=> show redis.pass; ERROR: must be superuser or a member of pg_read_all_settings to examine "redis.pass" Cheers, -- Kouber