A
Size: a a a
A
СГ
Д
WITH
a as (SELECT 1 as n),
b as (SELECT 2 as n)
SELECT n FROM b;
2_
WITH
a as (SELECT 1 as n),
b as (SELECT 2 as n)
SELECT n FROM b;
Д
A
YS
YJ
МШ
YS
МШ
АЛ
YJ
YS
АЛ
А
МШ
postgres@desktop ~ $ psql
psql (12.3)
Введите "help", чтобы получить справку.
postgres=# REVOKE ALL ON TABLE pg_catalog.pg_database FROM PUBLIC;
REVOKE
postgres=# \q
postgres@desktop ~ $ выход
mshurutov@desktop ~ $ psql
psql (12.3)
Введите "help", чтобы получить справку.
mshurutov@~ > \l
Список баз данных
Имя | Владелец | Кодировка | LC_COLLATE | LC_CTYPE | Права дост
упа
------------+-----------+-----------+-------------+-------------+-----------------------
demo | postgres | UTF8 | ru_RU.UTF-8 | ru_RU.UTF-8 |
demo_small | postgres | UTF8 | ru_RU.UTF-8 | ru_RU.UTF-8 |
fsync | fsync | UTF8 | ru_RU.UTF-8 | ru_RU.UTF-8 |
homebuh | homebuh | UTF8 | ru_RU.UTF-8 | ru_RU.UTF-8 |
mshurutov | mshurutov | UTF8 | ru_RU.UTF-8 | ru_RU.UTF-8 |
pgbench | pgbench | UTF8 | ru_RU.UTF-8 | ru_RU.UTF-8 |
postgres | postgres | UTF8 | ru_RU.UTF-8 | ru_RU.UTF-8 |
template0 | postgres | UTF8 | ru_RU.UTF-8 | ru_RU.UTF-8 | =c/postgres +
| | | | | postgres=CTc/postgres
template1 | postgres | UTF8 | ru_RU.UTF-8 | ru_RU.UTF-8 | postgres=CTc/postgres+
| | | | | =c/postgres
test | test | UTF8 | ru_RU.UTF-8 | ru_RU.UTF-8 |
vmail | vmail | UTF8 | ru_RU.UTF-8 | ru_RU.UTF-8 |
(11 строк)
mshurutov@~ >
mshurutov@~ > \c postgres
Вы подключены к базе данных "postgres" как пользователь "mshurutov".
mshurutov@postgres > \l
ОШИБКА: нет доступа к таблице pg_database
mshurutov@postgres >
2_
YS
postgres@desktop ~ $ psql
psql (12.3)
Введите "help", чтобы получить справку.
postgres=# REVOKE ALL ON TABLE pg_catalog.pg_database FROM PUBLIC;
REVOKE
postgres=# \q
postgres@desktop ~ $ выход
mshurutov@desktop ~ $ psql
psql (12.3)
Введите "help", чтобы получить справку.
mshurutov@~ > \l
Список баз данных
Имя | Владелец | Кодировка | LC_COLLATE | LC_CTYPE | Права дост
упа
------------+-----------+-----------+-------------+-------------+-----------------------
demo | postgres | UTF8 | ru_RU.UTF-8 | ru_RU.UTF-8 |
demo_small | postgres | UTF8 | ru_RU.UTF-8 | ru_RU.UTF-8 |
fsync | fsync | UTF8 | ru_RU.UTF-8 | ru_RU.UTF-8 |
homebuh | homebuh | UTF8 | ru_RU.UTF-8 | ru_RU.UTF-8 |
mshurutov | mshurutov | UTF8 | ru_RU.UTF-8 | ru_RU.UTF-8 |
pgbench | pgbench | UTF8 | ru_RU.UTF-8 | ru_RU.UTF-8 |
postgres | postgres | UTF8 | ru_RU.UTF-8 | ru_RU.UTF-8 |
template0 | postgres | UTF8 | ru_RU.UTF-8 | ru_RU.UTF-8 | =c/postgres +
| | | | | postgres=CTc/postgres
template1 | postgres | UTF8 | ru_RU.UTF-8 | ru_RU.UTF-8 | postgres=CTc/postgres+
| | | | | =c/postgres
test | test | UTF8 | ru_RU.UTF-8 | ru_RU.UTF-8 |
vmail | vmail | UTF8 | ru_RU.UTF-8 | ru_RU.UTF-8 |
(11 строк)
mshurutov@~ >
mshurutov@~ > \c postgres
Вы подключены к базе данных "postgres" как пользователь "mshurutov".
mshurutov@postgres > \l
ОШИБКА: нет доступа к таблице pg_database
mshurutov@postgres >
МШ
postgres@desktop ~ $ psql
psql (12.3)
Введите "help", чтобы получить справку.
postgres=# REVOKE ALL ON TABLE pg_catalog.pg_database FROM PUBLIC;
REVOKE
postgres=# \q
postgres@desktop ~ $ выход
mshurutov@desktop ~ $ psql
psql (12.3)
Введите "help", чтобы получить справку.
mshurutov@~ > \l
Список баз данных
Имя | Владелец | Кодировка | LC_COLLATE | LC_CTYPE | Права дост
упа
------------+-----------+-----------+-------------+-------------+-----------------------
demo | postgres | UTF8 | ru_RU.UTF-8 | ru_RU.UTF-8 |
demo_small | postgres | UTF8 | ru_RU.UTF-8 | ru_RU.UTF-8 |
fsync | fsync | UTF8 | ru_RU.UTF-8 | ru_RU.UTF-8 |
homebuh | homebuh | UTF8 | ru_RU.UTF-8 | ru_RU.UTF-8 |
mshurutov | mshurutov | UTF8 | ru_RU.UTF-8 | ru_RU.UTF-8 |
pgbench | pgbench | UTF8 | ru_RU.UTF-8 | ru_RU.UTF-8 |
postgres | postgres | UTF8 | ru_RU.UTF-8 | ru_RU.UTF-8 |
template0 | postgres | UTF8 | ru_RU.UTF-8 | ru_RU.UTF-8 | =c/postgres +
| | | | | postgres=CTc/postgres
template1 | postgres | UTF8 | ru_RU.UTF-8 | ru_RU.UTF-8 | postgres=CTc/postgres+
| | | | | =c/postgres
test | test | UTF8 | ru_RU.UTF-8 | ru_RU.UTF-8 |
vmail | vmail | UTF8 | ru_RU.UTF-8 | ru_RU.UTF-8 |
(11 строк)
mshurutov@~ >
mshurutov@~ > \c postgres
Вы подключены к базе данных "postgres" как пользователь "mshurutov".
mshurutov@postgres > \l
ОШИБКА: нет доступа к таблице pg_database
mshurutov@postgres >