Parameter value from (mb/gb) to bytes - Mailing list pgsql-general

From Raul Kaubi
Subject Parameter value from (mb/gb) to bytes
Date
Msg-id 6cbca2bcda734464a1be9f7d7380ff33@rik.ee
Whole thread Raw
Responses Re: Parameter value from (mb/gb) to bytes  (Thomas Kellerer <shammat@gmx.net>)
List pgsql-general

Hi

 

Is there a simple way to dynamically get for example parameter „shared buffers“ 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 the value in bytes.

 

Regards

Raul

pgsql-general by date:

Previous
From: chlor
Date:
Subject: Re: What's your experience with using Postgres in IoT-contexts?
Next
From: "Peter J. Holzer"
Date:
Subject: Re: What's your experience with using Postgres in IoT-contexts?