On Sat, 27 Sep 2003, Bruce Momjian wrote:
> Tom Lane wrote:
> > Bruce Momjian <pgman@candle.pha.pa.us> writes:
> > > With all the discussion and pg_upgrade, I saw no one offer to work on
> > > it.
> > > Does someone want to convert it to Perl? I think that would be a better
> > > language than shell script for this purpose, and C is too low-level.
> >
> > The reason that it needs to be rewritten in C is that it needs access to
> > internal stuff that the backend doesn't expose. (For example, the
> > transaction counter, end-of-WAL pointer, etc.) I don't think Perl would
> > offer anything except creating an entirely new dependency for Postgres.
> > Also, C code would be easier to keep in sync with the backend code that
> > accesses the same stuff.
>
> True, but doing all that text manipulation is C is going to be very hard
> to do and maintain.
What about using embedded perl? I've never done it before but the mention of it
in manpages has flashed past my eyes a couple of times so I know it's possible.
Did the discuss decide on what was required for this. Last I noticed was that
there was a distinction being made between system and user tables but I don't
recall seeing a 'requirements' summary.
Nigel