From: | Andreas Pflug <pgadmin(at)pse-consulting(dot)de> |
---|---|
To: | Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au> |
Cc: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>, pg(at)fastcrypt(dot)com, Neil Conway <neilc(at)samurai(dot)com>, Peter Eisentraut <peter_e(at)gmx(dot)net>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: logical column position |
Date: | 2003-11-19 17:30:37 |
Message-ID: | 3FBBA8BD.9020103@pse-consulting.de |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Christopher Kings-Lynne wrote:
>
>>> Will adding the logical attribute number break all of the external
>>> tools? pg_dump, etc are all dependent on attnum now?
>>>
>>> Would it be possible to keep the meaning of attnum the same externally
>>> and add another column internally to represent the physical number?
>>
>>
>>
>> Interesting idea. It would require a lot of code renaming in the
>> backend, but it could be done.
>
>
> Given that the interfaces comprise pgadmin, phppgadmin, jdbc and odbc
> and all the main developers for those lists read all these posts, I
> think the massive amount of effort to maintain the external interface
> isn't worth it.
>
> I can vouch that it would take me exactly 2 minutes to add support for
> attlognums in phpPgAdmin.
Lesson 1 in "SQL for beginners" says "Don't use SELECT * if you rely on
the order of columns". This discussion is about fixing a problem that
only inexperienced programmers have. It's like an extra set of wheels on
top of your car, just in case you drive wrong way...
What's happening if you simply delete a column? Ordering 1,2,3,5? Insert
another column of the same name, as a previously deleted, will it get
the old position number? And so on. IMHO, way too much effort for
working around situations that should be avoided anyway.
Regards,
Andreas
From | Date | Subject | |
---|---|---|---|
Next Message | Marc G. Fournier | 2003-11-19 17:31:04 | Re: Commercial binary support? |
Previous Message | Andrew Dunstan | 2003-11-19 17:18:00 | Re: Build farm |