Re: fomatting an interval - Mailing list pgsql-general

From Tom Lane
Subject Re: fomatting an interval
Date
Msg-id 5997.1052801748@sss.pgh.pa.us
Whole thread Raw
In response to Re: fomatting an interval  (Alvaro Herrera <alvherre@dcc.uchile.cl>)
List pgsql-general
Alvaro Herrera <alvherre@dcc.uchile.cl> writes:
> Given that recompiling and adding the new tuple into pg_proc by means of
> a simple INSERT(*) should be enough, it's hardly necessary to force an
> initdb.

> (*) It _can_ be done, right?

I think so.  The critical point is that interval_scale is not in the
compiled-in table of known internal functions in 7.3.2.  A recompile
with the added pg_proc.h line should get it in there, and then you could
manually add the pg_proc entry without actually doing initdb.  But I
haven't tested it to be sure there are no gotchas.

            regards, tom lane


pgsql-general by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: fomatting an interval
Next
From: Devrim GUNDUZ
Date:
Subject: Re: .NET and PostgreSQL