From: zhuangjifeng <zhuangjifeng(at)263(dot)net>
To: pgsql-hackers(at)postgresql(dot)org
Subject:
Date: 2004-04-29 10:10:04
Message-ID: 20040429101006.CF1411D50E@smtp.263.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

<html><pre><PRE>hello,<BR>everyone!<BR>&nbsp;I want to know how postgresql remain its unique index unique after <BR>i have change it.For example:<BR>&nbsp;create table human(age int,name char(2));<BR>then in the pg_attribute catalog the unique index pg_attribute_relid_attnum_index will<BR>use relid of 'human'and attnum of age to create a index tuple for attribute:age,which is a unique index tuple for a tuple which describe age in pg_attribute,and i do:<BR>&nbsp;alter table human rename age to birthdate;<BR>then in the unique index pg_attribute_relid_attnum_index will appear two index tuple <BR>which keys are relid of 'human' and attnum:1 to describe age ,but there is no error happening!!!!So i am interested in the method of remain the dynamic index very much.<BR>&nbsp;would you please tell how postgres do it and the src of this? <BR>thanks :) </PRE><PRE>&nbsp;</PRE><PRE>        致<BR>礼!<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</PRE><PRE>        庄继锋<BR>        <A href="mailto:zhuangjifeng(at)263(dot)net">zhuangjifeng(at)263(dot)net</A><BR>          2004-04-29</PRE></pre></html>

==========================
263电子邮件-信赖邮自专业

Attachment Content-Type Size
unknown_filename text/html 1.1 KB

Responses

  • Re: at 2004-04-29 23:50:01 from Tom Lane

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Treat 2004-04-29 13:08:37 Re: What can we learn from MySQL?
Previous Message Tom Lane 2004-04-29 07:26:06 Re: 7.5 features