Re: [SQL] Interval subtracting

From: Martijn van Oosterhout <kleptog(at)svana(dot)org>
To: Mark Dilger <pgsql(at)markdilger(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: [SQL] Interval subtracting
Date: 2006-03-02 18:43:46
Message-ID: 20060302184346.GC3126@svana.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches pgsql-sql

On Thu, Mar 02, 2006 at 10:06:26AM -0800, Mark Dilger wrote:
> I used grep -R to find all locations where interval_justify_time is
> mentioned, and for each one added an analogous entry for my new function
> interval_justify. But I get lost where OID=1175 is associated with
> interval_justify_time. I can't really just grep for 1175 and add analogous
> entries of my new OID, because I don't know what all the tables mean.
> (BTW, I grabbed the next slot in the table and used OID=2711, but I don't
> know if that is the proper strategy for adding new OIDs.)
>
> Is there an automated way of handling this task, such as a developer tool
> that I didn't find?

In the include/catalog directory there are two script, unused_oids and
duplicate_oids. It tells you whats available.

Have a ncie day,
--
Martijn van Oosterhout <kleptog(at)svana(dot)org> http://svana.org/kleptog/
> Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a
> tool for doing 5% of the work and then sitting around waiting for someone
> else to do the other 95% so you can sue them.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Jonah H. Harris 2006-03-02 18:50:24 Re: qsort again (was Re: [PERFORM] Strange Create Index behaviour)
Previous Message Peter Eisentraut 2006-03-02 18:39:18 Re: PostgreSQL Anniversary Summit, Call for Contributions

Browse pgsql-patches by date

  From Date Subject
Next Message Tom Lane 2006-03-02 19:10:53 Re: [SQL] Interval subtracting
Previous Message Mark Dilger 2006-03-02 18:06:26 Re: [SQL] Interval subtracting

Browse pgsql-sql by date

  From Date Subject
Next Message Tom Lane 2006-03-02 19:10:53 Re: [SQL] Interval subtracting
Previous Message Mark Dilger 2006-03-02 18:06:26 Re: [SQL] Interval subtracting