Parameter value from (mb/gb) to bytes

From: Raul Kaubi <Raul(dot)Kaubi(at)rik(dot)ee>
To: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Parameter value from (mb/gb) to bytes
Date: 2020-10-14 10:22:03
Message-ID: 6cbca2bcda734464a1be9f7d7380ff33@rik.ee
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Peter J. Holzer 2020-10-14 12:49:32 Re: What's your experience with using Postgres in IoT-contexts?
Previous Message chlor 2020-10-13 04:55:52 Re: What's your experience with using Postgres in IoT-contexts?