Dropping fields

Started by Robert Fitzpatrickover 23 years ago5 messagesgeneral
Jump to latest
#1Robert Fitzpatrick
robert@webtent.com

When I drop a field, the field is somewhat left over as
'........pg.dropped.5........', for instance. Is there a command that
needs to be ran after dropping a field?

--
Robert

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Robert Fitzpatrick (#1)
Re: Dropping fields

"Robert Fitzpatrick" <robert@webtent.com> writes:

When I drop a field, the field is somewhat left over as
'........pg.dropped.5........', for instance. Is there a command that
needs to be ran after dropping a field?

Fix your application to ignore pg_attribute rows where attisdropped
is true.

regards, tom lane

#3Bruce Momjian
bruce@momjian.us
In reply to: Robert Fitzpatrick (#1)
Re: Dropping fields

All applications must now check for dropped columns and not print them.
There is a new pg_attribute.attisdropped for this.

---------------------------------------------------------------------------

Robert Fitzpatrick wrote:

When I drop a field, the field is somewhat left over as
'........pg.dropped.5........', for instance. Is there a command that
needs to be ran after dropping a field?

--
Robert

---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073
#4Robert Fitzpatrick
robert@webtent.com
In reply to: Tom Lane (#2)
Re: Dropping fields

Fix your application to ignore pg_attribute rows where
attisdropped is true.

So, PostgreSQL 7.3.x now holds all dropped fields information? What is
the purpose?

--
Robert

#5Doug McNaught
doug@mcnaught.org
In reply to: Robert Fitzpatrick (#4)
Re: Dropping fields

"Robert Fitzpatrick" <robert@webtent.com> writes:

Fix your application to ignore pg_attribute rows where
attisdropped is true.

So, PostgreSQL 7.3.x now holds all dropped fields information? What is
the purpose?

It's the way column dropping is implemented. You couldn't drop
columns at all before 7.3.

-Doug