Tom Lane wrote:Of course, I use the most simple method of selecting all values which are not in RI_table, e.g."Geisler, Jim" <[EMAIL PROTECTED]> writes: # select * from user_table where user_table.value not in (select RI.value from RI_table); I had to do this often when I ported from one Postgres-like database (namely Illustra) into my current Postgres database. I noticed some rows would not insert into my target table from a text file containing my source table. So, I created a table like my desired target table but without referential integrity. Then, on the table w/o RI I did the above. But, as you can see, I do things as simply as possible. With great regard for the pros out here in Postgres Land, Jim Apsey |
- [GENERAL] Verifying Referential Integrity Geisler, Jim
- Re: [GENERAL] Verifying Referential Integrity Alvaro Herrera
- Re: [GENERAL] Verifying Referential Integrity Jimmie H. Apsey
- Re: [GENERAL] Verifying Referential Integrity Frank Miles
- Re: [GENERAL] Verifying Referential Integrity Tom Lane
- Jimmie H. Apsey
