Re: dividing money by money

Tom Lane <tgl@sss.pgh.pa.us>

From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andy Balholm <andy@balholm.com>
Cc: "Kevin Grittner" <Kevin.Grittner@wicourts.gov>, pgsql-hackers@postgresql.org
Date: 2010-05-31T00:01:21Z
Lists: pgsql-hackers
Andy Balholm <andy@balholm.com> writes:
> How do I come up with OID numbers for my new operators and functions?

Go into src/include/catalog and run the "unused_oids" script found
there.  Pick some.

Your chances of getting numbers close to those currently in use for
money-related functions are probably nil, so I'd suggest just using
a consecutive range at or a bit above the last one currently in use.

			regards, tom lane