Re: 7.2 stuff - Mailing list pgsql-hackers

From John Gray
Subject Re: 7.2 stuff
Date
Msg-id 9tvt76$1v54$1@news.tht.net
Whole thread Raw
In response to Re: 7.2 stuff  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
In article <17242.1006834868@sss.pgh.pa.us>, "Tom Lane"
<tgl@sss.pgh.pa.us> wrote:

>> Basically I was getting the impression that the command.c was getting
>> big and fat and that it might be nice to split all the ALTER* commands
>> into an alter.c or something.
> 
> Cool with me.  We often fail to spend enough effort on code
> beautification projects; that hurts the maintainability of the project
> in the long run.  Feel free to devise and implement a better division of
> the ALTER code.  (And as I think we already talked about, it'd also be
> cool to try to merge the common infrastructure of the ALTER commands
> somehow.  I don't like umpteen copied-and-pasted versions of the same
> code, either ...)
> 

I'd started a little of this with my TOAST slicing patch -moving some
common code around in command.c (standard permissions checking and
recursing over children) to eliminate duplicates. 

I'm still sitting on the patch and maintaining separately because it is
for 7.3, but I am quite interested in some further tidying, but I don't
want to load too much into a single patch.

Regards

John



-- 
John Gray
Azuli IT    http://www.azuli.co.uk      +44 121 693 3397
jgray@azuli.co.uk


pgsql-hackers by date:

Previous
From: "Zeugswetter Andreas SB SD"
Date:
Subject: Re: Pre-page images in WAL
Next
From: bpalmer
Date:
Subject: Re: OpenBSD results for 7.2b3 (oops!)