pg_get_constraintdef patch #2

Started by Christopher Kings-Lynneover 23 years ago3 messagespatches
Jump to latest
#1Christopher Kings-Lynne
chriskl@familyhealth.com.au

Hi,

This patch supercedes the previous version. Apply this instead of the
previous version.

This patch makes pg_get_constraintdef support UNIQUE, PRIMARY KEY and CHECK
constraints.

There are apparently no other types of constraint in pg_constraint, so now
all bases are covered. Also, this patch assumes that consrc for a CHECK
constraint is always bracketed so that it's not necessary to add extra
brackets.

Chris

Attachments:

constraint2.txttext/plain; name=constraint2.txtDownload+49-30
#2Bruce Momjian
bruce@momjian.us
In reply to: Christopher Kings-Lynne (#1)
Re: pg_get_constraintdef patch #2

Your patch has been added to the PostgreSQL unapplied patches list at:

http://momjian.postgresql.org/cgi-bin/pgpatches

I will try to apply it within the next 48 hours.

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

Christopher Kings-Lynne wrote:

Hi,

This patch supercedes the previous version. Apply this instead of the
previous version.

This patch makes pg_get_constraintdef support UNIQUE, PRIMARY KEY and CHECK
constraints.

There are apparently no other types of constraint in pg_constraint, so now
all bases are covered. Also, this patch assumes that consrc for a CHECK
constraint is always bracketed so that it's not necessary to add extra
brackets.

Chris

[ Attachment, skipping... ]

---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to majordomo@postgresql.org)

-- 
  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
#3Bruce Momjian
bruce@momjian.us
In reply to: Christopher Kings-Lynne (#1)
Re: pg_get_constraintdef patch #2

Patch applied. Thanks.

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

Christopher Kings-Lynne wrote:

Hi,

This patch supercedes the previous version. Apply this instead of the
previous version.

This patch makes pg_get_constraintdef support UNIQUE, PRIMARY KEY and CHECK
constraints.

There are apparently no other types of constraint in pg_constraint, so now
all bases are covered. Also, this patch assumes that consrc for a CHECK
constraint is always bracketed so that it's not necessary to add extra
brackets.

Chris

[ Attachment, skipping... ]

---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to majordomo@postgresql.org)

-- 
  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