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 1kSh80-0000HV-LQ for pgsql-general@arkaria.postgresql.org; Wed, 14 Oct 2020 13:47:42 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kSh7z-0000lX-Jj for pgsql-general@arkaria.postgresql.org; Wed, 14 Oct 2020 13:47:39 +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 1kSdvA-0003RX-CR for pgsql-general@lists.postgresql.org; Wed, 14 Oct 2020 10:22:12 +0000 Received: from mail1.just.ee ([213.184.53.9]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kSdv6-0004nc-Im for pgsql-general@postgresql.org; Wed, 14 Oct 2020 10:22:10 +0000 DKIM-Signature: v=1; a=rsa-sha256; d=rik.ee; s=s20190418; c=relaxed/relaxed; q=dns/txt; i=@rik.ee; t=1602670924; x=1605262924; h=From:Date:Subject:Message-ID:To:MIME-Version; bh=fX4nO7etnLIFSY5rRdqKHL1rv9RqAaPUlUh6VZWt6qc=; b=Yw4tOpbUkFQRGDKP/A97aN/C4mMCMhPha8mObB5Q1lIsCV2s0UZFadBmRW5mMvUq q5WQLwQxvHQXffjhhsrn0eHLv8xKH9uiHLZJh/V0hLDhzQo5CSu1ZgPdh247AuVZ 5eMZHLT+tfUOu+MBZnkQw46tehNKepsLfL8LwKQ1XgI=; X-AuditID: d5b83509-bedff700000058f1-a3-5f86d14c40ca From: Raul Kaubi To: "pgsql-general@postgresql.org" Subject: Parameter value from (mb/gb) to bytes Thread-Topic: Parameter value from (mb/gb) to bytes Thread-Index: AdaiE2jCr+H+T95yQQCIyYP3ySD/xw== Date: Wed, 14 Oct 2020 10:22:03 +0000 Message-ID: <6cbca2bcda734464a1be9f7d7380ff33@rik.ee> Accept-Language: et-EE, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-exclaimer-md-config: 0ffde1e1-0574-4cb5-b117-7534ebede067 Content-Type: multipart/alternative; boundary="_000_6cbca2bcda734464a1be9f7d7380ff33rikee_" MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrKLMWRmVeSWpSXmKPExsXCxWh2WNfnYlu8wcWVbBbT725lc2D0uLBv GnsAYxSXTUpqTmZZapG+XQJXxo/t3YwFq6Uqni2ayN7A2CnexcjJISFgIvF+3iXWLkYODjYB FYknOxVAwiICjhKL739hBrGFBfQkWnv3MEPEjSUenPzGAmHrSWxqvwZmswioSrRdPcIEYvMK mEpM2DebEcRmFJCVWLJxAVicWUBc4taT+UwQawUkluw5zwxhi0q8fPwP7AQJAWuJSQ89Icpj JQ5d/MoOMVJQ4uTMJywTGPlnIZk0C0nZLCRlEHEdiQW7P7FB2NoSyxa+Zoaxzxx4zIQsvoCR fRUjb25iZo6hXlZpcYleauomRmDQXt1hyrmD8esvw0OMTByMhxglOJiVRHhfSbfFC/GmJFZW pRblxxeV5qQWH2KU5mBREuddat4SLySQnliSmp2aWpBaBJNl4uCUamCcsnrz9s+KAns/V7dN bO6UVnQ5al/4pFjqHYfZnsIFi9iy4wV7F/2qO/FzUjpb17Lfbm9P57m9NQ+J1gl69+fW8+Qt y33DmddNmmUuwPlbj7+7MfCk08ZqKaFlyjHi7IfPbzNOV3V9wZV9eu6zTvu8Cw0/evvWd+pL WjW1uodEOi9OXbL1Y60SS3FGoqEWc1FxIgCRCDkJSAIAAA== List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --_000_6cbca2bcda734464a1be9f7d7380ff33rikee_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi Is there a simple way to dynamically get for example parameter "shared buff= ers" value (megabytes or gigabytes) to bytes, for monitoring perspective..? At the moment, this gives me value in GB. # psql -U postgres -Atc "show shared_buffers;" 1GB This value may as well be in MB. So I am looking a way to dynamically get t= he value in bytes. Regards Raul --_000_6cbca2bcda734464a1be9f7d7380ff33rikee_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi

 

Is there a simple way to dynamically get for example= parameter „shared buffers“ value (megabytes or gigabytes) to b= ytes, for monitoring perspective..?

 

At the moment, this gives me value in GB.=

 

# psql -U postgres -Atc "show shared_buffers;&q= uot;

1GB

 

This value may as well be in MB. So I am looking a w= ay to dynamically get the value in bytes.

 

Regards

Raul

--_000_6cbca2bcda734464a1be9f7d7380ff33rikee_--