Re: Add dblink function to check if a named connection exists

Поиск
Список
Период
Сортировка
От Tommy Gildseth
Тема Re: Add dblink function to check if a named connection exists
Дата
Msg-id 4844316C.8050401@usit.uio.no
обсуждение исходный текст
Ответ на Re: Add dblink function to check if a named connection exists  (Joe Conway <mail@joeconway.com>)
Список pgsql-hackers
Joe Conway wrote:

> 
> If you really want the notational simplicity, you could use an SQL 
> function to wrap it:
> 
> CREATE OR REPLACE FUNCTION dblink_exists(text)
> RETURNS bool AS $$
>   SELECT $1 = ANY (dblink_get_connections())
> $$ LANGUAGE sql;


Thanks, that seems like a reasonable way to solve this.


-- 
Tommy Gildseth


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