Re: How to get SE-PostgreSQL acceptable - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: How to get SE-PostgreSQL acceptable
Date
Msg-id 20090209174424.GE2870@alvh.no-ip.org
Whole thread Raw
In response to Re: How to get SE-PostgreSQL acceptable  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Tom Lane escribió:
> Alvaro Herrera <alvherre@commandprompt.com> writes:
> > KaiGai Kohei escribi�:
> >> One melancholic thing is adding a member into pg_proc.
> >> It defines more than 2000 of entries which I have to modify correctly. :(
> >> Is there any script to help it?
> 
> > Try a search for "coccinelle", "sdiff", or was it "spatch"?  It got
> > featured on http://LWN.net/ not many weeks ago.

Here it is:
http://lwn.net/Articles/315686/

> FWIW, every single time I've had to add a column to pg_proc (and I've
> done it several times now), an Emacs macro got the job done with a few
> minutes' thought.  I'm sure sed would work as well.  The contents of
> those DATA lines are really pretty stylized.

I've had to do it only once, but yes, I did it with a simple s// command
in Vim.


pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: renaming "storage parameters"
Next
From: Tom Lane
Date:
Subject: Re: WIP: fix SET WITHOUT OIDS, add SET WITH OIDS