Peter Geoghegan [Sun, 9 Mar 2014 07:07:22 +0000 (23:07 -0800)]
Reorder within jsonb_support.c
Peter Geoghegan [Sun, 9 Mar 2014 06:14:12 +0000 (22:14 -0800)]
arrayToJsonbSortedArray variable name
Peter Geoghegan [Sun, 9 Mar 2014 06:04:23 +0000 (22:04 -0800)]
More on compareJsonbStringValue
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".
Peter Geoghegan [Sun, 9 Mar 2014 04:27:55 +0000 (20:27 -0800)]
Update jsonb_1.out with recent tests previously missed
Peter Geoghegan [Sun, 9 Mar 2014 03:33:45 +0000 (19:33 -0800)]
Fix GiST key/element bug too
Peter Geoghegan [Sun, 9 Mar 2014 03:27:40 +0000 (19:27 -0800)]
Minor opclass-wise function re-ordering for GIN
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.
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.
Andrew Dunstan [Sat, 8 Mar 2014 20:18:18 +0000 (15:18 -0500)]
fix lexical comparison of strings in json
Andrew Dunstan [Sat, 8 Mar 2014 20:03:20 +0000 (15:03 -0500)]
fix jsonb_1.out file
Peter Geoghegan [Sat, 8 Mar 2014 09:10:17 +0000 (01:10 -0800)]
jsonb_support.c style tweaks
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
Maciek Sakrejda [Sat, 8 Mar 2014 00:49:03 +0000 (16:49 -0800)]
jsonb test cleanup for duplication and formatting consistency
Maciek Sakrejda [Sat, 8 Mar 2014 00:21:16 +0000 (16:21 -0800)]
More consistent formatting for jsonb tests
Peter Geoghegan [Sat, 8 Mar 2014 00:03:55 +0000 (16:03 -0800)]
Remove last of the hstore2 regression tests
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.
Peter Geoghegan [Fri, 7 Mar 2014 23:51:41 +0000 (15:51 -0800)]
Remove hstore data changes
Peter Geoghegan [Fri, 7 Mar 2014 23:47:46 +0000 (15:47 -0800)]
Merge branch 'jsonb-test-fixes' into jsonb_and_hstore
Maciek Sakrejda [Fri, 7 Mar 2014 23:47:39 +0000 (15:47 -0800)]
jsonb nested each tests
Peter Geoghegan [Fri, 7 Mar 2014 23:45:13 +0000 (15:45 -0800)]
Why use jsonb_hash_ops
Maciek Sakrejda [Fri, 7 Mar 2014 23:36:26 +0000 (15:36 -0800)]
jsonb exists tests
Peter Geoghegan [Fri, 7 Mar 2014 23:18:41 +0000 (15:18 -0800)]
Update documentation to reflect new JSON RFC
Maciek Sakrejda [Fri, 7 Mar 2014 23:11:58 +0000 (15:11 -0800)]
jsonb nested path extraction
Peter Geoghegan [Fri, 7 Mar 2014 22:59:30 +0000 (14:59 -0800)]
GIN comment tweaks
Maciek Sakrejda [Fri, 7 Mar 2014 22:58:22 +0000 (14:58 -0800)]
jsonb nested field/index lookup tests
Peter Geoghegan [Fri, 7 Mar 2014 22:42:18 +0000 (14:42 -0800)]
Minor jsonfuncs.c diff minimization
Maciek Sakrejda [Fri, 7 Mar 2014 22:37:46 +0000 (14:37 -0800)]
Nested containment tests
Peter Geoghegan [Fri, 7 Mar 2014 22:23:29 +0000 (14:23 -0800)]
Reorder btree ops
Peter Geoghegan [Fri, 7 Mar 2014 22:10:14 +0000 (14:10 -0800)]
Refactor jsonb_support.c
Peter Geoghegan [Fri, 7 Mar 2014 21:28:15 +0000 (13:28 -0800)]
Restructure jsonb.c
Peter Geoghegan [Fri, 7 Mar 2014 20:55:03 +0000 (12:55 -0800)]
Restructure jsonb_op.c
Peter Geoghegan [Fri, 7 Mar 2014 20:46:18 +0000 (12:46 -0800)]
Restructure jsonb_gist.c
Maciek Sakrejda [Fri, 7 Mar 2014 20:45:46 +0000 (12:45 -0800)]
Nested jsonb tests
Peter Geoghegan [Fri, 7 Mar 2014 20:34:11 +0000 (12:34 -0800)]
Enable, don't facilitate
Peter Geoghegan [Fri, 7 Mar 2014 20:30:18 +0000 (12:30 -0800)]
Merge branch 'jsonb-test-fixes' into jsonb_and_hstore
Peter Geoghegan [Fri, 7 Mar 2014 20:29:03 +0000 (12:29 -0800)]
Restructure jsonb_gin.c
Maciek Sakrejda [Fri, 7 Mar 2014 20:13:54 +0000 (12:13 -0800)]
jsonb_typeof tests
Peter Geoghegan [Fri, 7 Mar 2014 20:12:07 +0000 (12:12 -0800)]
invalid, not wrong
Peter Geoghegan [Fri, 7 Mar 2014 20:04:42 +0000 (12:04 -0800)]
Remove redundancy in docs on jsonb vs json
Maciek Sakrejda [Fri, 7 Mar 2014 19:54:34 +0000 (11:54 -0800)]
jsonb_contained tests
Maciek Sakrejda [Fri, 7 Mar 2014 19:46:47 +0000 (11:46 -0800)]
Add function call version of jsonb_contains tests
Maciek Sakrejda [Fri, 7 Mar 2014 19:43:06 +0000 (11:43 -0800)]
Move containment tests
Maciek Sakrejda [Fri, 7 Mar 2014 19:18:02 +0000 (11:18 -0800)]
Transfer exists tests
Maciek Sakrejda [Fri, 7 Mar 2014 18:45:43 +0000 (10:45 -0800)]
@> operator tests
Peter Geoghegan [Fri, 7 Mar 2014 10:58:59 +0000 (02:58 -0800)]
Makefile alignment
Peter Geoghegan [Fri, 7 Mar 2014 10:41:26 +0000 (02:41 -0800)]
inline keyword not useful
Peter Geoghegan [Fri, 7 Mar 2014 10:34:46 +0000 (02:34 -0800)]
Indentation fixes
Peter Geoghegan [Fri, 7 Mar 2014 10:20:23 +0000 (02:20 -0800)]
pgindent run on new core files
Peter Geoghegan [Fri, 7 Mar 2014 09:31:47 +0000 (01:31 -0800)]
Fix jsonb_exists_all
Peter Geoghegan [Fri, 7 Mar 2014 08:51:48 +0000 (00:51 -0800)]
Consistently use new 'object' nomenclature for associative structure
Peter Geoghegan [Fri, 7 Mar 2014 08:13:25 +0000 (00:13 -0800)]
Remove ill-considered @ operator
Peter Geoghegan [Fri, 7 Mar 2014 07:45:22 +0000 (23:45 -0800)]
Regression test whitespace
Peter Geoghegan [Fri, 7 Mar 2014 07:41:10 +0000 (23:41 -0800)]
Fix broken GiST compression
Forgot to detoast ghstore value during compression.
Peter Geoghegan [Fri, 7 Mar 2014 05:38:10 +0000 (21:38 -0800)]
Whitespace
Peter Geoghegan [Fri, 7 Mar 2014 03:17:23 +0000 (19:17 -0800)]
Minor style tweaks
Peter Geoghegan [Fri, 7 Mar 2014 02:43:55 +0000 (18:43 -0800)]
Fix hash gin opclass in tests
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.
Peter Geoghegan [Fri, 7 Mar 2014 02:30:04 +0000 (18:30 -0800)]
Document various operator classes
Maciek Sakrejda [Fri, 7 Mar 2014 02:07:24 +0000 (18:07 -0800)]
Move remaining jsonb.data tests
Peter Geoghegan [Fri, 7 Mar 2014 01:45:39 +0000 (17:45 -0800)]
Remove bulk of observations on jsonb from notes section
Maciek Sakrejda [Fri, 7 Mar 2014 01:38:07 +0000 (17:38 -0800)]
Remove hstore tests ported to jsonb
Maciek Sakrejda [Fri, 7 Mar 2014 01:35:38 +0000 (17:35 -0800)]
Add jsonb_each and sort/hash tests
Maciek Sakrejda [Fri, 7 Mar 2014 01:03:34 +0000 (17:03 -0800)]
Fix existing scan tests; add gin
Peter Geoghegan [Fri, 7 Mar 2014 00:35:12 +0000 (16:35 -0800)]
Better wording of what the operators are
Maciek Sakrejda [Fri, 7 Mar 2014 00:34:11 +0000 (16:34 -0800)]
Fix expected output
Peter Geoghegan [Fri, 7 Mar 2014 00:24:17 +0000 (16:24 -0800)]
More polish for documentation
Maciek Sakrejda [Thu, 6 Mar 2014 23:56:46 +0000 (15:56 -0800)]
Add basic scan tests
Maciek Sakrejda [Thu, 6 Mar 2014 22:16:40 +0000 (14:16 -0800)]
Add jsonb equality/inequality tests
Maciek Sakrejda [Thu, 6 Mar 2014 22:05:46 +0000 (14:05 -0800)]
Add error tests for jsonb_extract_path on scalars
Maciek Sakrejda [Thu, 6 Mar 2014 21:49:19 +0000 (13:49 -0800)]
Add failing test cases where applicable
Maciek Sakrejda [Thu, 6 Mar 2014 21:17:18 +0000 (13:17 -0800)]
Typo fix
Maciek Sakrejda [Thu, 6 Mar 2014 21:15:39 +0000 (13:15 -0800)]
Additional reformatting
Maciek Sakrejda [Thu, 6 Mar 2014 21:04:11 +0000 (13:04 -0800)]
Reformat jsonb tests for terseness
Peter Geoghegan [Thu, 6 Mar 2014 23:17:23 +0000 (15:17 -0800)]
They're text arrays
Peter Geoghegan [Thu, 6 Mar 2014 23:10:59 +0000 (15:10 -0800)]
First cut at documenting new operators
Peter Geoghegan [Thu, 6 Mar 2014 19:29:45 +0000 (11:29 -0800)]
Revert hstore_op.c bug fix change, already integrated to core
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
Peter Geoghegan [Thu, 6 Mar 2014 18:59:23 +0000 (10:59 -0800)]
More removal of hstore vistiges, remove dead struct
Peter Geoghegan [Thu, 6 Mar 2014 18:50:38 +0000 (10:50 -0800)]
fix jsonb_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
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
Peter Geoghegan [Thu, 6 Mar 2014 08:33:42 +0000 (00:33 -0800)]
Move more support functions in private modules
Peter Geoghegan [Thu, 6 Mar 2014 08:12:19 +0000 (00:12 -0800)]
Tweak jsonb.h header once more
Peter Geoghegan [Thu, 6 Mar 2014 08:03:37 +0000 (00:03 -0800)]
Re-ordering within jsonb.h some more
Peter Geoghegan [Thu, 6 Mar 2014 07:56:04 +0000 (23:56 -0800)]
Macros can live in jsonb_support.c
Peter Geoghegan [Thu, 6 Mar 2014 07:46:30 +0000 (23:46 -0800)]
Refactor
Remove dead code. Shape up jsonb.h.
Peter Geoghegan [Thu, 6 Mar 2014 07:11:41 +0000 (23:11 -0800)]
Whitespace
Peter Geoghegan [Thu, 6 Mar 2014 07:07:02 +0000 (23:07 -0800)]
Remove unused idx functions
Peter Geoghegan [Thu, 6 Mar 2014 07:03:13 +0000 (23:03 -0800)]
Add headers, clean-up a bit for core
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
Peter Geoghegan [Thu, 6 Mar 2014 06:21:14 +0000 (22:21 -0800)]
gin hash opclass added, all opclass sanity checks pass
Peter Geoghegan [Thu, 6 Mar 2014 06:05:34 +0000 (22:05 -0800)]
GIN regression opclass passing
Peter Geoghegan [Thu, 6 Mar 2014 05:10:33 +0000 (21:10 -0800)]
Remove hstore tests that just reflect change in output format
Peter Geoghegan [Thu, 6 Mar 2014 04:42:31 +0000 (20:42 -0800)]
Use PG_GETARG_JSONB consistently
Peter Geoghegan [Thu, 6 Mar 2014 04:33:23 +0000 (20:33 -0800)]
Fix bug, GiST works
Peter Geoghegan [Thu, 6 Mar 2014 03:22:27 +0000 (19:22 -0800)]
Not compatible
Peter Geoghegan [Thu, 6 Mar 2014 03:07:39 +0000 (19:07 -0800)]
GiST in core passes regression tests
Peter Geoghegan [Thu, 6 Mar 2014 01:54:09 +0000 (17:54 -0800)]
Add contains and contained alt operators
Peter Geoghegan [Thu, 6 Mar 2014 01:06:38 +0000 (17:06 -0800)]
?& operator