Skip site navigation (1) Skip section navigation (2)

Re: ALT*R T*BL* S*T / DR*P N*T N*LL patch - 4th try

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Christopher Kings-Lynne" <chriskl(at)familyhealth(dot)com(dot)au>
Cc: "Patches" <pgsql-patches(at)postgresql(dot)org>
Subject: Re: ALT*R T*BL* S*T / DR*P N*T N*LL patch - 4th try
Date: 2002-03-30 20:20:36
Message-ID: 3201.1017519636@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-patches
"Christopher Kings-Lynne" <chriskl(at)familyhealth(dot)com(dot)au> writes:
> This is a complete patch to implement changing the nullability of an
> attribute.

This looks good but I'm afraid it's out of step with recent changes
for schema support.  In particular, heap_openr is now The Wrong Thing
to use for anything except access to system relations.  As of CVS tip,
all the AlterTable routines use OID parameters not name parameters
to identify the table to work on.  Could I ask you to update the patch
to match the coding style in CVS tip?

> The only thing I haven't checked are my ecpg changes.  I would like someone
> with more ecpg experience to check my preproc.y changes.

I'd suggest leaving ecpg to Michael; he seems to prefer to do those
updates himself.

> Since I have now added two new large functions to command.c, I propose that
> sometime before 7.3 beta, command.c is refactored and an alter.c created.
> There is lots of common code in the Alter* functions that should be reused.

This is definitely a good thing to do.  I think someone else (John
Gray?) had already volunteered, but I have not seen a patch go by.

			regards, tom lane

In response to

Responses

pgsql-patches by date

Next:From: Rod TaylorDate: 2002-03-31 03:22:39
Subject: Re: Insert ... (a, b, DEFAULT, c, d);
Previous:From: Tom LaneDate: 2002-03-30 19:06:24
Subject: Re: Insert ... (a, b, DEFAULT, c, d);

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group