Unix Technical Forum

column order

This is a discussion on column order within the pgsql Novice forums, part of the PostgreSQL category; --> does the column order within a table matter? i had to delete a column when making a foreign key ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Novice

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-17-2008, 08:30 PM
operationsengineer1@yahoo.com
 
Posts: n/a
Default column order

does the column order within a table matter? i had to
delete a column when making a foreign key b/c int4[]
didn't allow the reference. i deleted int4[] and
recreated the table with int4 and everything was fine
- except my column order within my table was
different. does this make a difference beyond losing
some visual and organizational appeal?

can pgadmin3 rearrange the order of the columns?

tia...



__________________________________
Do you Yahoo!?
Yahoo! Mail - 250MB free storage. Do more. Manage less.
http://info.mail.yahoo.com/mail_250

---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if your
joining column's datatypes do not match

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-17-2008, 08:30 PM
Larry Rosenman
 
Posts: n/a
Default Re: column order

operationsengineer1@yahoo.com wrote:
> does the column order within a table matter? i had to delete a
> column when making a foreign key b/c int4[] didn't allow the
> reference. i deleted int4[] and recreated the table with int4 and
> everything was fine - except my column order within my table was
> different. does this make a difference beyond losing some visual and
> organizational appeal?
>
> can pgadmin3 rearrange the order of the columns?
>
> tia...
>

It shouldn't matter. The only place it might matter is if you are doing a
select * from table
And the code that is reading the results cares about the column order.



--
Larry Rosenman http://www.lerctr.org/~ler
Phone: +1 972-414-9812 E-Mail: ler@lerctr.org
US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749



---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faq

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 06:39 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com