Re: pg_get_triggerdef in pg_dump

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>, Andreas Pflug <Andreas(dot)Pflug(at)web(dot)de>, Alvaro Herrera <alvherre(at)dcc(dot)uchile(dot)cl>, Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: pg_get_triggerdef in pg_dump
Date: 2003-06-24 02:52:02
Message-ID: 200306240252.h5O2q3011727@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


Add to TODO:

o Allow ALTER TABLE to modify column lengths and change to binary
compatible types

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

Tom Lane wrote:
> "Christopher Kings-Lynne" <chriskl(at)familyhealth(dot)com(dot)au> writes:
> >> There might be other cases of legal direct change of system catalog
> >> entries, e,g. varchar to text, if they all are only names for internally
> >> identical data structures. Can you tell which datatypes may be legally
> >> interchanged?
>
> > Yes, you can check if they're binary compatible from the pg_cast table....
>
> But nearly all of the interesting cases require you to understand the
> type's interpretation of typmod, and you can't learn that from a table.
> How many cases are there where blindly looking for a binary-compatible
> cast in pg_cast will really do you much good? AFAICS you'd have to set
> atttypmod to -1 if you change atttypid without knowing very specifically
> what you are changing from and to.
>
> regards, tom lane
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo(at)postgresql(dot)org
>

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2003-06-24 02:54:19 Re: src/bin/scripts seems a bit of a misnomer now
Previous Message Bruce Momjian 2003-06-24 02:41:05 Re: pg_get_triggerdef in pg_dump