Identifying user-created objects

Поиск
Список
Период
Сортировка
От Masahiko Sawada
Тема Identifying user-created objects
Дата
Msg-id CA+fd4k7Zr+yQLYWF3O_KjAJyYYUZFBZ_dFchfBvq5bMj9GgKQw@mail.gmail.com
обсуждение исходный текст
Ответы Re: Identifying user-created objects  (Amit Langote <amitlangote09@gmail.com>)
Re: Identifying user-created objects  (Fujii Masao <masao.fujii@oss.nttdata.com>)
Список pgsql-hackers
Hi,

User can create database objects such as functions into pg_catalog.
But if I'm not missing something, currently there is no
straightforward way to identify if the object is a user created object
or a system object which is created during initdb. If we can do that
user will be able to check if malicious functions are not created in
the database, which is important from the security perspective.

I've attached PoC patch to introduce a SQL function
pg_is_user_object() that returns true if the given oid is user object
oid, that is greater than or equal to FirstNormalObjectId. Feedback is
very welcome.

Regards,

-- 
Masahiko Sawada            http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

Вложения

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

Предыдущее
От: Amit Kapila
Дата:
Сообщение: Re: PATCH: logical_work_mem and logical streaming of largein-progress transactions
Следующее
От: Emil Iggland
Дата:
Сообщение: Re: BUG #15858: could not stat file - over 4GB