Re: What to do with a PAAS-pg server

From: Ian Lawrence Barwick <barwick(at)gmail(dot)com>
To: "alexander al (leiden)" <alexander(at)scred(dot)nl>
Cc: Postgres General <pgsql-general(at)postgresql(dot)org>
Subject: Re: What to do with a PAAS-pg server
Date: 2024-11-01 06:07:20
Message-ID: CAB8KJ=hLMRE6=bkQV0bpgozrxjkECKjoGsbjH63U=85woKrDJw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

2024年10月31日(木) 0:32 alexander al (leiden) <alexander(at)scred(dot)nl>:
>
> Hi,
>
> we have a supplier (via our client) who has an self build PAAS-version
> of postgresql. Ok, you would say, that's fine. But, there is always an
> but, we think the settings are not quite ok. We really want to know how
> much memory etc there is on that server. So we can recommend the
> recommended settings. Is there a way to get those information on the
> server itself from psql?

If you mean you e.g. only have access to psql on the server in question,
but want to know more about the server itself (i.e. not the PostgreSQL
settings), then you might have luck poking around with the pg_read_file()
function, e.g.:

SELECT pg_read_file('/proc/meminfo');

Note you will need database superuser permission to execute pg_read_file(),
or for non-superusers be granted EXECUTE permission on it.

Regards

Ian Barwick

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Muhammad Usman Khan 2024-11-01 06:40:36 Re: pg_wal folder high disk usage
Previous Message Bruce Momjian 2024-11-01 03:42:16 Re: What to do with a PAAS-pg server