system info functions

Поиск
Список
Период
Сортировка
От Neil Conway
Тема system info functions
Дата
Msg-id 1151988755.5039.10.camel@localhost
обсуждение исходный текст
Ответы Re: system info functions  ("Dave Page" <dpage@vale-housing.co.uk>)
Список pgsql-hackers
(1) The docs claim that pg_get_viewdef() returns the "CREATE VIEW
command for view", but that is clearly not the case:

postgres=# create view v1 as select 1;
CREATE VIEW
postgres=# select pg_get_viewdef('v1'::regclass::oid);pg_get_viewdef 
----------------SELECT 1;
(1 row)

Should we change the documentation, or the implementation of
pg_get_viewdef()?

(2) pg_get_indexdef() and pg_get_triggerdef() don't include a
terminating semi-colon, but pg_get_ruledef() does (as does the SELECT
statement returned by pg_get_viewdef()). Is there a good reason for this
inconsistency?

-Neil




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

Предыдущее
От: Agent M
Дата:
Сообщение: binds only for s,u,i,d?
Следующее
От: "Dave Page"
Дата:
Сообщение: Re: buildfarm stats