| От | Tom Lane |
|---|---|
| Тема | Re: copying databases w/ indexes |
| Дата | |
| Msg-id | 7165.1060890436@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | copying databases w/ indexes (Yuji Shinozaki <ys2n@virginia.edu>) |
| Список | pgsql-admin |
Yuji Shinozaki <ys2n@virginia.edu> writes:
> See my other reply, but the problem was that I had a foreign key
> constraint between an integer and varchar. (The column was a varchar and
> the foreign key was an integer field). Seems to me postgres shouldn't
> have allowed me to do this at all, but I guess it did a slow automatic
> type conversion. So, reindexing was deathly slow.
There was some talk recently of spitting out a NOTICE when the
referenced columns aren't the same type as the referencing columns.
It's not done yet, but it's starting to seem like a good idea.
regards, tom lane
В списке pgsql-admin по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера