Re: md5 of table

Поиск
Список
Период
Сортировка
От Sim Zacks
Тема Re: md5 of table
Дата
Msg-id 4E5F9624.3050909@compulab.co.il
обсуждение исходный текст
Ответ на Re: md5 of table  (Merlin Moncure <mmoncure@gmail.com>)
Ответы Re: md5 of table
Список pgsql-general
> OP:
>> I thought about using dblink and the EXCEPT query, but then I need to know the field list of each query result,
whichis a pain in the butt. 
> That is not correct.  As long as the table definitions are precisely
> the same, you can move records across dblink without specifying
> fields.  You do this by using record type for the composite which
> dblink sends across as text.
>
> merlin

Do you have a quick example? This is what I have tried:

select * from tbla
except
select * from dblink('host=dbhost dbname=otherdb user=myuser
password=mypwd'::text, 'select * from tbla')

The error I get back is:
ERROR:  a column definition list is required for functions returning
"record"

Sim


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

Предыдущее
От: Antonio Vieiro
Дата:
Сообщение: Memory leak somewhere at PQconnectdb?
Следующее
От: "Albe Laurenz"
Дата:
Сообщение: Re: strange table disk sizes