users/andresfreund/postgres.git
11 years agoReorder within jsonb_support.c
Peter Geoghegan [Sun, 9 Mar 2014 07:07:22 +0000 (23:07 -0800)]
Reorder within jsonb_support.c

11 years agoarrayToJsonbSortedArray variable name
Peter Geoghegan [Sun, 9 Mar 2014 06:14:12 +0000 (22:14 -0800)]
arrayToJsonbSortedArray variable name

11 years agoMore on compareJsonbStringValue
Peter Geoghegan [Sun, 9 Mar 2014 06:04:23 +0000 (22:04 -0800)]
More on compareJsonbStringValue

11 years agoTweaks
Peter Geoghegan [Sun, 9 Mar 2014 05:52:56 +0000 (21:52 -0800)]
Tweaks

Formalize the notion that text index storage treats keys and elements as
equivalent.  lexicalCompareJsonbStringValue requires no "arg".

11 years agoUpdate jsonb_1.out with recent tests previously missed
Peter Geoghegan [Sun, 9 Mar 2014 04:27:55 +0000 (20:27 -0800)]
Update jsonb_1.out with recent tests previously missed

11 years agoFix GiST key/element bug too
Peter Geoghegan [Sun, 9 Mar 2014 03:33:45 +0000 (19:33 -0800)]
Fix GiST key/element bug too

11 years agoMinor opclass-wise function re-ordering for GIN
Peter Geoghegan [Sun, 9 Mar 2014 03:27:40 +0000 (19:27 -0800)]
Minor opclass-wise function re-ordering for GIN

11 years agoFix contains operator in jsonb GIN support routine
Peter Geoghegan [Sun, 9 Mar 2014 03:16:31 +0000 (19:16 -0800)]
Fix contains operator in jsonb GIN support routine

Have gin_extract_jsonb() flag boths keys and elements as keys.  I
believe this is safe, but additional review would be useful.

Add some regression testing for this.  The same bug exists for GiST, and
that isn't fixed here, so the failing regression test adding for the
analogous GiST bug earlier continues to fail.

11 years agoFailing test for GiST indexes on jsonb arrays
Peter Geoghegan [Sat, 8 Mar 2014 22:31:12 +0000 (14:31 -0800)]
Failing test for GiST indexes on jsonb arrays

Even though in some contexts jsonb arrays of strings have as keys (or at
least indexable values) their string elements, this only works with
seqscan plans.  Both GiST and GIN are broken here, which I'm inclined to
consider a submission-blocking issue.

This presumably breaks non-utf8 tests for now, but currently it isn't
clear to me how I ought to deal with that, so pending an answer I'll go
ahead and commit this.

11 years agofix lexical comparison of strings in json
Andrew Dunstan [Sat, 8 Mar 2014 20:18:18 +0000 (15:18 -0500)]
fix lexical comparison of strings in json

11 years agofix jsonb_1.out file
Andrew Dunstan [Sat, 8 Mar 2014 20:03:20 +0000 (15:03 -0500)]
fix jsonb_1.out file

11 years agojsonb_support.c style tweaks
Peter Geoghegan [Sat, 8 Mar 2014 09:10:17 +0000 (01:10 -0800)]
jsonb_support.c style tweaks

11 years agoMerge branch 'jsonb-test-fixes' into jsonb_and_hstore
Peter Geoghegan [Sat, 8 Mar 2014 01:01:55 +0000 (17:01 -0800)]
Merge branch 'jsonb-test-fixes' into jsonb_and_hstore

Final clean-up for consistency

11 years agojsonb test cleanup for duplication and formatting consistency
Maciek Sakrejda [Sat, 8 Mar 2014 00:49:03 +0000 (16:49 -0800)]
jsonb test cleanup for duplication and formatting consistency

11 years agoMore consistent formatting for jsonb tests
Maciek Sakrejda [Sat, 8 Mar 2014 00:21:16 +0000 (16:21 -0800)]
More consistent formatting for jsonb tests

11 years agoRemove last of the hstore2 regression tests
Peter Geoghegan [Sat, 8 Mar 2014 00:03:55 +0000 (16:03 -0800)]
Remove last of the hstore2 regression tests

11 years agoMerge branch 'jsonb-test-fixes' into jsonb_and_hstore
Peter Geoghegan [Sat, 8 Mar 2014 00:00:16 +0000 (16:00 -0800)]
Merge branch 'jsonb-test-fixes' into jsonb_and_hstore

This is the last of the tests from hstore.

11 years agoRemove hstore data changes
Peter Geoghegan [Fri, 7 Mar 2014 23:51:41 +0000 (15:51 -0800)]
Remove hstore data changes

11 years agoMerge branch 'jsonb-test-fixes' into jsonb_and_hstore
Peter Geoghegan [Fri, 7 Mar 2014 23:47:46 +0000 (15:47 -0800)]
Merge branch 'jsonb-test-fixes' into jsonb_and_hstore

11 years agojsonb nested each tests
Maciek Sakrejda [Fri, 7 Mar 2014 23:47:39 +0000 (15:47 -0800)]
jsonb nested each tests

11 years agoWhy use jsonb_hash_ops
Peter Geoghegan [Fri, 7 Mar 2014 23:45:13 +0000 (15:45 -0800)]
Why use jsonb_hash_ops

11 years agojsonb exists tests
Maciek Sakrejda [Fri, 7 Mar 2014 23:36:26 +0000 (15:36 -0800)]
jsonb exists tests

11 years agoUpdate documentation to reflect new JSON RFC
Peter Geoghegan [Fri, 7 Mar 2014 23:18:41 +0000 (15:18 -0800)]
Update documentation to reflect new JSON RFC

11 years agojsonb nested path extraction
Maciek Sakrejda [Fri, 7 Mar 2014 23:11:58 +0000 (15:11 -0800)]
jsonb nested path extraction

11 years agoGIN comment tweaks
Peter Geoghegan [Fri, 7 Mar 2014 22:59:30 +0000 (14:59 -0800)]
GIN comment tweaks

11 years agojsonb nested field/index lookup tests
Maciek Sakrejda [Fri, 7 Mar 2014 22:58:22 +0000 (14:58 -0800)]
jsonb nested field/index lookup tests

11 years agoMinor jsonfuncs.c diff minimization
Peter Geoghegan [Fri, 7 Mar 2014 22:42:18 +0000 (14:42 -0800)]
Minor jsonfuncs.c diff minimization

11 years agoNested containment tests
Maciek Sakrejda [Fri, 7 Mar 2014 22:37:46 +0000 (14:37 -0800)]
Nested containment tests

11 years agoReorder btree ops
Peter Geoghegan [Fri, 7 Mar 2014 22:23:29 +0000 (14:23 -0800)]
Reorder btree ops

11 years agoRefactor jsonb_support.c
Peter Geoghegan [Fri, 7 Mar 2014 22:10:14 +0000 (14:10 -0800)]
Refactor jsonb_support.c

11 years agoRestructure jsonb.c
Peter Geoghegan [Fri, 7 Mar 2014 21:28:15 +0000 (13:28 -0800)]
Restructure jsonb.c

11 years agoRestructure jsonb_op.c
Peter Geoghegan [Fri, 7 Mar 2014 20:55:03 +0000 (12:55 -0800)]
Restructure jsonb_op.c

11 years agoRestructure jsonb_gist.c
Peter Geoghegan [Fri, 7 Mar 2014 20:46:18 +0000 (12:46 -0800)]
Restructure jsonb_gist.c

11 years agoNested jsonb tests
Maciek Sakrejda [Fri, 7 Mar 2014 20:45:46 +0000 (12:45 -0800)]
Nested jsonb tests

11 years agoEnable, don't facilitate
Peter Geoghegan [Fri, 7 Mar 2014 20:34:11 +0000 (12:34 -0800)]
Enable, don't facilitate

11 years agoMerge branch 'jsonb-test-fixes' into jsonb_and_hstore
Peter Geoghegan [Fri, 7 Mar 2014 20:30:18 +0000 (12:30 -0800)]
Merge branch 'jsonb-test-fixes' into jsonb_and_hstore

11 years agoRestructure jsonb_gin.c
Peter Geoghegan [Fri, 7 Mar 2014 20:29:03 +0000 (12:29 -0800)]
Restructure jsonb_gin.c

11 years agojsonb_typeof tests
Maciek Sakrejda [Fri, 7 Mar 2014 20:13:54 +0000 (12:13 -0800)]
jsonb_typeof tests

11 years agoinvalid, not wrong
Peter Geoghegan [Fri, 7 Mar 2014 20:12:07 +0000 (12:12 -0800)]
invalid, not wrong

11 years agoRemove redundancy in docs on jsonb vs json
Peter Geoghegan [Fri, 7 Mar 2014 20:04:42 +0000 (12:04 -0800)]
Remove redundancy in docs on jsonb vs json

11 years agojsonb_contained tests
Maciek Sakrejda [Fri, 7 Mar 2014 19:54:34 +0000 (11:54 -0800)]
jsonb_contained tests

11 years agoAdd function call version of jsonb_contains tests
Maciek Sakrejda [Fri, 7 Mar 2014 19:46:47 +0000 (11:46 -0800)]
Add function call version of jsonb_contains tests

11 years agoMove containment tests
Maciek Sakrejda [Fri, 7 Mar 2014 19:43:06 +0000 (11:43 -0800)]
Move containment tests

11 years agoTransfer exists tests
Maciek Sakrejda [Fri, 7 Mar 2014 19:18:02 +0000 (11:18 -0800)]
Transfer exists tests

11 years ago@> operator tests
Maciek Sakrejda [Fri, 7 Mar 2014 18:45:43 +0000 (10:45 -0800)]
@> operator tests

11 years agoMakefile alignment
Peter Geoghegan [Fri, 7 Mar 2014 10:58:59 +0000 (02:58 -0800)]
Makefile alignment

11 years agoinline keyword not useful
Peter Geoghegan [Fri, 7 Mar 2014 10:41:26 +0000 (02:41 -0800)]
inline keyword not useful

11 years agoIndentation fixes
Peter Geoghegan [Fri, 7 Mar 2014 10:34:46 +0000 (02:34 -0800)]
Indentation fixes

11 years agopgindent run on new core files
Peter Geoghegan [Fri, 7 Mar 2014 10:20:23 +0000 (02:20 -0800)]
pgindent run on new core files

11 years agoFix jsonb_exists_all
Peter Geoghegan [Fri, 7 Mar 2014 09:31:47 +0000 (01:31 -0800)]
Fix jsonb_exists_all

11 years agoConsistently use new 'object' nomenclature for associative structure
Peter Geoghegan [Fri, 7 Mar 2014 08:51:48 +0000 (00:51 -0800)]
Consistently use new 'object' nomenclature for associative structure

11 years agoRemove ill-considered @ operator
Peter Geoghegan [Fri, 7 Mar 2014 08:13:25 +0000 (00:13 -0800)]
Remove ill-considered @ operator

11 years agoRegression test whitespace
Peter Geoghegan [Fri, 7 Mar 2014 07:45:22 +0000 (23:45 -0800)]
Regression test whitespace

11 years agoFix broken GiST compression
Peter Geoghegan [Fri, 7 Mar 2014 07:41:10 +0000 (23:41 -0800)]
Fix broken GiST compression

Forgot to detoast ghstore value during compression.

11 years agoWhitespace
Peter Geoghegan [Fri, 7 Mar 2014 05:38:10 +0000 (21:38 -0800)]
Whitespace

11 years agoMinor style tweaks
Peter Geoghegan [Fri, 7 Mar 2014 03:17:23 +0000 (19:17 -0800)]
Minor style tweaks

11 years agoFix hash gin opclass in tests
Peter Geoghegan [Fri, 7 Mar 2014 02:43:55 +0000 (18:43 -0800)]
Fix hash gin opclass in tests

11 years agoMerge branch 'jsonb-test-fixes' into jsonb_and_hstore
Peter Geoghegan [Fri, 7 Mar 2014 02:31:49 +0000 (18:31 -0800)]
Merge branch 'jsonb-test-fixes' into jsonb_and_hstore

Adds some regression tests previously in hstore2 to core's jsonb
datatype.

11 years agoDocument various operator classes
Peter Geoghegan [Fri, 7 Mar 2014 02:30:04 +0000 (18:30 -0800)]
Document various operator classes

11 years agoMove remaining jsonb.data tests
Maciek Sakrejda [Fri, 7 Mar 2014 02:07:24 +0000 (18:07 -0800)]
Move remaining jsonb.data tests

11 years agoRemove bulk of observations on jsonb from notes section
Peter Geoghegan [Fri, 7 Mar 2014 01:45:39 +0000 (17:45 -0800)]
Remove bulk of observations on jsonb from notes section

11 years agoRemove hstore tests ported to jsonb
Maciek Sakrejda [Fri, 7 Mar 2014 01:38:07 +0000 (17:38 -0800)]
Remove hstore tests ported to jsonb

11 years agoAdd jsonb_each and sort/hash tests
Maciek Sakrejda [Fri, 7 Mar 2014 01:35:38 +0000 (17:35 -0800)]
Add jsonb_each and sort/hash tests

11 years agoFix existing scan tests; add gin
Maciek Sakrejda [Fri, 7 Mar 2014 01:03:34 +0000 (17:03 -0800)]
Fix existing scan tests; add gin

11 years agoBetter wording of what the operators are
Peter Geoghegan [Fri, 7 Mar 2014 00:35:12 +0000 (16:35 -0800)]
Better wording of what the operators are

11 years agoFix expected output
Maciek Sakrejda [Fri, 7 Mar 2014 00:34:11 +0000 (16:34 -0800)]
Fix expected output

11 years agoMore polish for documentation
Peter Geoghegan [Fri, 7 Mar 2014 00:24:17 +0000 (16:24 -0800)]
More polish for documentation

11 years agoAdd basic scan tests
Maciek Sakrejda [Thu, 6 Mar 2014 23:56:46 +0000 (15:56 -0800)]
Add basic scan tests

11 years agoAdd jsonb equality/inequality tests
Maciek Sakrejda [Thu, 6 Mar 2014 22:16:40 +0000 (14:16 -0800)]
Add jsonb equality/inequality tests

11 years agoAdd error tests for jsonb_extract_path on scalars
Maciek Sakrejda [Thu, 6 Mar 2014 22:05:46 +0000 (14:05 -0800)]
Add error tests for jsonb_extract_path on scalars

11 years agoAdd failing test cases where applicable
Maciek Sakrejda [Thu, 6 Mar 2014 21:49:19 +0000 (13:49 -0800)]
Add failing test cases where applicable

11 years agoTypo fix
Maciek Sakrejda [Thu, 6 Mar 2014 21:17:18 +0000 (13:17 -0800)]
Typo fix

11 years agoAdditional reformatting
Maciek Sakrejda [Thu, 6 Mar 2014 21:15:39 +0000 (13:15 -0800)]
Additional reformatting

11 years agoReformat jsonb tests for terseness
Maciek Sakrejda [Thu, 6 Mar 2014 21:04:11 +0000 (13:04 -0800)]
Reformat jsonb tests for terseness

11 years agoThey're text arrays
Peter Geoghegan [Thu, 6 Mar 2014 23:17:23 +0000 (15:17 -0800)]
They're text arrays

11 years agoFirst cut at documenting new operators
Peter Geoghegan [Thu, 6 Mar 2014 23:10:59 +0000 (15:10 -0800)]
First cut at documenting new operators

11 years agoRevert hstore_op.c bug fix change, already integrated to core
Peter Geoghegan [Thu, 6 Mar 2014 19:29:45 +0000 (11:29 -0800)]
Revert hstore_op.c bug fix change, already integrated to core

11 years agoMerge remote-tracking branch 'feodor/jsonb_and_hstore' into jsonb_and_hstore
Peter Geoghegan [Thu, 6 Mar 2014 19:28:12 +0000 (11:28 -0800)]
Merge remote-tracking branch 'feodor/jsonb_and_hstore' into jsonb_and_hstore

11 years agoMore removal of hstore vistiges, remove dead struct
Peter Geoghegan [Thu, 6 Mar 2014 18:59:23 +0000 (10:59 -0800)]
More removal of hstore vistiges, remove dead struct

11 years agofix jsonb_hash() - now it uses correct hashing for numeric value
Peter Geoghegan [Thu, 6 Mar 2014 18:50:38 +0000 (10:50 -0800)]
fix jsonb_hash() - now it uses correct hashing for numeric value

11 years agofix hstore_hash() - now it uses correct hashing for numeric value
Teodor Sigaev [Thu, 6 Mar 2014 12:23:57 +0000 (16:23 +0400)]
fix hstore_hash() - now it uses correct hashing for numeric value

11 years agoRemove hstore_to_json tests, which are not really necessary in light of clean break
Peter Geoghegan [Thu, 6 Mar 2014 09:24:53 +0000 (01:24 -0800)]
Remove hstore_to_json tests, which are not really necessary in light of clean break

11 years agoMove more support functions in private modules
Peter Geoghegan [Thu, 6 Mar 2014 08:33:42 +0000 (00:33 -0800)]
Move more support functions in private modules

11 years agoTweak jsonb.h header once more
Peter Geoghegan [Thu, 6 Mar 2014 08:12:19 +0000 (00:12 -0800)]
Tweak jsonb.h header once more

11 years agoRe-ordering within jsonb.h some more
Peter Geoghegan [Thu, 6 Mar 2014 08:03:37 +0000 (00:03 -0800)]
Re-ordering within jsonb.h some more

11 years agoMacros can live in jsonb_support.c
Peter Geoghegan [Thu, 6 Mar 2014 07:56:04 +0000 (23:56 -0800)]
Macros can live in jsonb_support.c

11 years agoRefactor
Peter Geoghegan [Thu, 6 Mar 2014 07:46:30 +0000 (23:46 -0800)]
Refactor

Remove dead code. Shape up jsonb.h.

11 years agoWhitespace
Peter Geoghegan [Thu, 6 Mar 2014 07:11:41 +0000 (23:11 -0800)]
Whitespace

11 years agoRemove unused idx functions
Peter Geoghegan [Thu, 6 Mar 2014 07:07:02 +0000 (23:07 -0800)]
Remove unused idx functions

11 years agoAdd headers, clean-up a bit for core
Peter Geoghegan [Thu, 6 Mar 2014 07:03:13 +0000 (23:03 -0800)]
Add headers, clean-up a bit for core

11 years agoRevert changes to hstore; formalize notion that jsonb and hstore are fully separate
Peter Geoghegan [Thu, 6 Mar 2014 06:39:58 +0000 (22:39 -0800)]
Revert changes to hstore; formalize notion that jsonb and hstore are fully separate

11 years agogin hash opclass added, all opclass sanity checks pass
Peter Geoghegan [Thu, 6 Mar 2014 06:21:14 +0000 (22:21 -0800)]
gin hash opclass added, all opclass sanity checks pass

11 years agoGIN regression opclass passing
Peter Geoghegan [Thu, 6 Mar 2014 06:05:34 +0000 (22:05 -0800)]
GIN regression opclass passing

11 years agoRemove hstore tests that just reflect change in output format
Peter Geoghegan [Thu, 6 Mar 2014 05:10:33 +0000 (21:10 -0800)]
Remove hstore tests that just reflect change in output format

11 years agoUse PG_GETARG_JSONB consistently
Peter Geoghegan [Thu, 6 Mar 2014 04:42:31 +0000 (20:42 -0800)]
Use PG_GETARG_JSONB consistently

11 years agoFix bug, GiST works
Peter Geoghegan [Thu, 6 Mar 2014 04:33:23 +0000 (20:33 -0800)]
Fix bug, GiST works

11 years agoNot compatible
Peter Geoghegan [Thu, 6 Mar 2014 03:22:27 +0000 (19:22 -0800)]
Not compatible

11 years agoGiST in core passes regression tests
Peter Geoghegan [Thu, 6 Mar 2014 03:07:39 +0000 (19:07 -0800)]
GiST in core passes regression tests

11 years agoAdd contains and contained alt operators
Peter Geoghegan [Thu, 6 Mar 2014 01:54:09 +0000 (17:54 -0800)]
Add contains and contained alt operators

11 years ago?& operator
Peter Geoghegan [Thu, 6 Mar 2014 01:06:38 +0000 (17:06 -0800)]
?& operator