From: | Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au> |
---|---|
To: | Andreas Pflug <pgadmin(at)pse-consulting(dot)de> |
Cc: | Michael Shapiro <mshapiro(at)ncsa(dot)edu>, pgadmin-support(at)postgresql(dot)org |
Subject: | Re: pg admin bug - view data |
Date: | 2003-11-22 02:15:16 |
Message-ID: | 3FBEC6B4.1080906@familyhealth.com.au |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgadmin-support |
> Yes, you're right, that's a bug; fixed in cvs.
> Though I consider a table without PK or OID buggy too... :-)
> We might expand pgAdmin3 to use a unique key as PK replacement.
phpPgAdmin does the following in order to find a unique row identifier:
1. Looks for a PK
2. Looks for a Unique index. If one is found, editing rows is possible
unless the entry in the index for the row is NULL (because there can be
multiple NULLs in a unique index)
3. Looks for an OID column. If one exists, editing is possible BUT the
update or delete of the row is performed in a transaction and if more
than one row is modified then the alteration is rolled back. This is
important as OID columns can contain duplicate entries in the case of
OID wraparound.
You know, phpPgAdmin and pgAdmin really should share a lot more :)
I think I'll look at the pgAdmin3 column type alteration code. You
might be interested in phpPgAdmin's Find Object code...
Actually, are you guys BSD licensed or GPL'd? phpPgAdmin is GPL'd.
Chris
From | Date | Subject | |
---|---|---|---|
Next Message | Dave Page | 2003-11-22 05:46:48 | Re: pg admin bug - view data |
Previous Message | Andreas Pflug | 2003-11-21 18:25:44 | Re: Crash when editing data |