Re: Accessing system information functions

Поиск
Список
Период
Сортировка
От Erik Wienhold
Тема Re: Accessing system information functions
Дата
Msg-id 6dim6wcprwepp6v4oorlgh6wzjlrxx5qushbvvja24fb2txj4m@wkwbke2frjoy
обсуждение исходный текст
Ответы Re: [EXT]Re: Accessing system information functions  ("Johnson, Bruce E - (bjohnson)" <Johnson@pharmacy.arizona.edu>)
Список pgsql-general
On 2023-09-22 17:37 +0000, Johnson, Bruce E - (bjohnson) wrote:
> postgres=# pg_database_size(avi);
> ERROR:  syntax error at or near "pg_database_size"
> LINE 1: pg_database_size(avi);

Call functions with SELECT, e.g.:

    SELECT pg_database_size('avi');

Also, the database name must be a string.

> Do I have to add anything to the search_path?

Not for objects in schema pg_catalog which is always searched whether
it's listed in the search path or not.

-- 
Erik



В списке pgsql-general по дате отправления:

Предыдущее
От: Thomas Kellerer
Дата:
Сообщение: Re: Right version of jdbc
Следующее
От: shashidhar Reddy
Дата:
Сообщение: Postgres 11.5 not logging all sqls