postgresql/src
Alvaro Herrera 97690ea6e8 Change array_offset to return subscripts, not offsets
... and rename it and its sibling array_offsets to array_position and
array_positions, to account for the changed behavior.

Having the functions return subscripts better matches existing practice,
and is better suited to using the result value as a subscript into the
array directly.  For one-based arrays, the new definition is identical
to what was originally committed.

(We use the term "subscript" in the documentation, which is what we use
whenever we talk about arrays; but the functions themselves are named
using the word "position" to match the standard-defined POSITION()
functions.)

Author: Pavel Stěhule
Behavioral problem noted by Dean Rasheed.
2015-03-30 16:13:21 -03:00
..
backend Change array_offset to return subscripts, not offsets 2015-03-30 16:13:21 -03:00
bin Clean up all the cruft after a pg_rewind test run. 2015-03-29 20:54:37 -04:00
common Unlink static libraries before rebuilding them. 2015-03-01 13:05:23 -05:00
include Change array_offset to return subscripts, not offsets 2015-03-30 16:13:21 -03:00
interfaces Tweak __attribute__-wrapping macros for better pgindent results. 2015-03-26 14:03:25 -04:00
makefiles Revert haphazard pgxs makefile changes 2014-12-04 08:07:59 -05:00
pl Tweak __attribute__-wrapping macros for better pgindent results. 2015-03-26 14:03:25 -04:00
port Upgrade src/port/rint.c to be POSIX-compliant. 2015-03-25 15:54:18 -04:00
template Remove duplicate specification of -Ae for HP-UX C compiler. 2015-01-13 22:52:11 -05:00
test Change array_offset to return subscripts, not offsets 2015-03-30 16:13:21 -03:00
timezone Update time zone data files to tzdata release 2015a. 2015-01-30 22:45:44 -05:00
tools Try to fix MSVC build of pg_rewind. 2015-03-23 20:26:49 +02:00
tutorial Update copyright for 2015 2015-01-06 11:43:47 -05:00
.gitignore Convert cvsignore to gitignore, and add .gitignore for build targets. 2010-09-22 12:57:04 +02:00
bcc32.mak Autoconfiscate selection of 64-bit int type for 64-bit large object API. 2012-10-07 21:52:43 -04:00
DEVELOPERS Replace a couple of references to files that no longer exist in the source 2009-05-04 08:08:47 +00:00
Makefile Create libpgcommon, and move pg_malloc et al to it 2013-02-12 11:21:05 -03:00
Makefile.global.in Fix installcheck case for tap tests 2014-12-24 10:31:36 -05:00
Makefile.shlib Unlink static libraries before rebuilding them. 2015-03-01 13:05:23 -05:00
nls-global.mk Setup error context callback for transaction lock waits 2014-03-19 15:10:36 -03:00
win32.mak Autoconfiscate selection of 64-bit int type for 64-bit large object API. 2012-10-07 21:52:43 -04:00