| From: | momjian(at)postgresql(dot)org (Bruce Momjian - CVS) |
|---|---|
| To: | pgsql-committers(at)postgresql(dot)org |
| Subject: | pgsql-server/src backend/utils/adt/arrayfuncs. ... |
| Date: | 2002-11-08 17:27:03 |
| Message-ID: | 20021108172703.BC8EF476585@postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
CVSROOT: /cvsroot
Module name: pgsql-server
Changes by: momjian(at)postgresql(dot)org 02/11/08 12:27:03
Modified files:
src/backend/utils/adt: arrayfuncs.c
src/include/catalog: catversion.h pg_proc.h
src/include/utils: array.h
Log message:
The "Allow easy display of usernames in a group (pg_hba.conf uses groups
now)" item on the open items, and subsequent plpgsql function I sent in,
made me realize it was too hard to get the upper and lower bound of an
array. The attached creates two functions that I think will be very
useful when combined with the ability of plpgsql to return sets.
array_lower(array, dim_num)
- and -
array_upper(array, dim_num)
They return the value (as an int) of the upper and lower bound of the
requested dim in the provided array.
Joe Conway
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 2002-11-08 17:37:52 | pgsql-server/ oc/src/sgml/runtime.sgml rc/back ... |
| Previous Message | Bruce Momjian - CVS | 2002-11-08 16:49:55 | pgsql-server/doc Tag: REL7_3_STABLE FAQ_SCO |