Re: Problem with Check Constraint in pg_restore
| От | Alan Millington |
|---|---|
| Тема | Re: Problem with Check Constraint in pg_restore |
| Дата | |
| Msg-id | 79025.60403.qm@web25405.mail.ukl.yahoo.com обсуждение |
| Ответ на | Re: Problem with Check Constraint in pg_restore (Tom Lane <tgl@sss.pgh.pa.us>) |
| Список | pgsql-general |
Thank you for that. Having done some further investigation I had concluded that the problem was probably with the LIKE (~~) comparison. I created a text dump file with the -d (use INSERT rather than COPY) option so that I could see which rows failed. All of the rows which exercised the LIKE test failed, and all those that did not succeeded. I remain a bit puzzled as to why the comparison should work one way when INSERT or COPY is invoked from pgAdmin III, and another when COPY is invoked from pg_restore or INSERT is contained in a file fed to psql. Be that as it may; I shall take your advice, and use EXTRACT instead, if that is going to be more robust. --- On Mon, 13/7/09, Tom Lane <tgl@sss.pgh.pa.us> wrote:
|
В списке pgsql-general по дате отправления: