| From: | Merlin Moncure <mmoncure(at)gmail(dot)com> |
|---|---|
| To: | Nelson Green <nelsongreen84(at)gmail(dot)com> |
| Cc: | pgsql <pgsql-general(at)postgresql(dot)org> |
| Subject: | Re: Programmatic access to interval units |
| Date: | 2014-12-02 21:48:54 |
| Message-ID: | CAHyXU0xxy6Qub7DudSnwrJyD--d15PQKDd=tt7X547kaz5SjmQ@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
On Tue, Dec 2, 2014 at 12:40 PM, Nelson Green <nelsongreen84(at)gmail(dot)com> wrote:
> In the line: IF LOWER(_unit) NOT IN (SELECT interval_unit ..., I would
> rather
> query a catalog table for the interval unit names if possible. That would
> then
> compensate for any changes to those values in the future.
>
> When I meant do this in C, I was referring to rewriting this function in C
> instead of Pl/pgSQL.
>
> I hope this helps you understand what I am asking, and apologies for not
> being
> more specific up front.
I was the one that was confused -- heh. I mis-understood the original
email and thought you were trying to validate interval output vs
interval input.
merlin
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Adrian Klaver | 2014-12-02 23:13:25 | Re: Problem with pg_dump and decimal mark |
| Previous Message | Nelson Green | 2014-12-02 21:05:00 | Re: [Solved] Programmatic access to interval units |