postgresql/src/include/catalog
Alexander Korotkov 676887a3b0 Implementation of subscripting for jsonb
Subscripting for jsonb does not support slices, does not have a limit for the
number of subscripts, and an assignment expects a replace value to have jsonb
type.  There is also one functional difference between assignment via
subscripting and assignment via jsonb_set().  When an original jsonb container
is NULL, the subscripting replaces it with an empty jsonb and proceeds with
an assignment.

For the sake of code reuse, we rearrange some parts of jsonb functionality
to allow the usage of the same functions for jsonb_set and assign subscripting
operation.

The original idea belongs to Oleg Bartunov.

Catversion is bumped.

Discussion: https://postgr.es/m/CA%2Bq6zcV8qvGcDXurwwgUbwACV86Th7G80pnubg42e-p9gsSf%3Dg%40mail.gmail.com
Discussion: https://postgr.es/m/CA%2Bq6zcX3mdxGCgdThzuySwH-ApyHHM-G4oB1R0fn0j2hZqqkLQ%40mail.gmail.com
Discussion: https://postgr.es/m/CA%2Bq6zcVDuGBv%3DM0FqBYX8DPebS3F_0KQ6OVFobGJPM507_SZ_w%40mail.gmail.com
Discussion: https://postgr.es/m/CA%2Bq6zcVovR%2BXY4mfk-7oNk-rF91gH0PebnNfuUjuuDsyHjOcVA%40mail.gmail.com
Author: Dmitry Dolgov
Reviewed-by: Tom Lane, Arthur Zakirov, Pavel Stehule, Dian M Fay
Reviewed-by: Andrew Dunstan, Chapman Flack, Merlin Moncure, Peter Geoghegan
Reviewed-by: Alvaro Herrera, Jim Nasby, Josh Berkus, Victor Wagner
Reviewed-by: Aleksander Alekseev, Robert Haas, Oleg Bartunov
2021-01-31 23:50:40 +03:00
..
.gitignore Replace our traditional initial-catalog-data format with a better design. 2018-04-08 13:17:27 -04:00
Makefile Update copyright for 2021 2021-01-02 13:06:25 -05:00
binary_upgrade.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
catalog.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
catversion.h Implementation of subscripting for jsonb 2021-01-31 23:50:40 +03:00
dependency.h Prevent drop of tablespaces used by partitioned relations 2021-01-14 15:32:14 -03:00
duplicate_oids Update copyright for 2021 2021-01-02 13:06:25 -05:00
genbki.h Add primary keys and unique constraints to system catalogs 2021-01-30 19:44:29 +01:00
heap.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
index.h Refactor option handling of CLUSTER, REINDEX and VACUUM 2021-01-18 14:03:10 +09:00
indexing.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
namespace.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
objectaccess.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
objectaddress.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
partition.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
pg_aggregate.dat Run reformat-dat-files to declutter the catalog data files. 2021-01-13 16:14:38 -05:00
pg_aggregate.h Add primary keys and unique constraints to system catalogs 2021-01-30 19:44:29 +01:00
pg_am.dat Update copyright for 2021 2021-01-02 13:06:25 -05:00
pg_am.h Add primary keys and unique constraints to system catalogs 2021-01-30 19:44:29 +01:00
pg_amop.dat Run reformat-dat-files to declutter the catalog data files. 2021-01-13 16:14:38 -05:00
pg_amop.h Add primary keys and unique constraints to system catalogs 2021-01-30 19:44:29 +01:00
pg_amproc.dat Run reformat-dat-files to declutter the catalog data files. 2021-01-13 16:14:38 -05:00
pg_amproc.h Add primary keys and unique constraints to system catalogs 2021-01-30 19:44:29 +01:00
pg_attrdef.h Add primary keys and unique constraints to system catalogs 2021-01-30 19:44:29 +01:00
pg_attribute.h Add primary keys and unique constraints to system catalogs 2021-01-30 19:44:29 +01:00
pg_auth_members.h Add primary keys and unique constraints to system catalogs 2021-01-30 19:44:29 +01:00
pg_authid.dat Update copyright for 2021 2021-01-02 13:06:25 -05:00
pg_authid.h Add primary keys and unique constraints to system catalogs 2021-01-30 19:44:29 +01:00
pg_cast.dat Run reformat-dat-files to declutter the catalog data files. 2021-01-13 16:14:38 -05:00
pg_cast.h Add primary keys and unique constraints to system catalogs 2021-01-30 19:44:29 +01:00
pg_class.dat Update copyright for 2021 2021-01-02 13:06:25 -05:00
pg_class.h Add primary keys and unique constraints to system catalogs 2021-01-30 19:44:29 +01:00
pg_collation.dat Run reformat-dat-files to declutter the catalog data files. 2021-01-13 16:14:38 -05:00
pg_collation.h Add primary keys and unique constraints to system catalogs 2021-01-30 19:44:29 +01:00
pg_constraint.h Add primary keys and unique constraints to system catalogs 2021-01-30 19:44:29 +01:00
pg_control.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
pg_conversion.dat Update copyright for 2021 2021-01-02 13:06:25 -05:00
pg_conversion.h Add primary keys and unique constraints to system catalogs 2021-01-30 19:44:29 +01:00
pg_database.dat Update copyright for 2021 2021-01-02 13:06:25 -05:00
pg_database.h Add primary keys and unique constraints to system catalogs 2021-01-30 19:44:29 +01:00
pg_db_role_setting.h Add primary keys and unique constraints to system catalogs 2021-01-30 19:44:29 +01:00
pg_default_acl.h Add primary keys and unique constraints to system catalogs 2021-01-30 19:44:29 +01:00
pg_depend.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
pg_description.h Add primary keys and unique constraints to system catalogs 2021-01-30 19:44:29 +01:00
pg_enum.h Add primary keys and unique constraints to system catalogs 2021-01-30 19:44:29 +01:00
pg_event_trigger.h Add primary keys and unique constraints to system catalogs 2021-01-30 19:44:29 +01:00
pg_extension.h Add primary keys and unique constraints to system catalogs 2021-01-30 19:44:29 +01:00
pg_foreign_data_wrapper.h Add primary keys and unique constraints to system catalogs 2021-01-30 19:44:29 +01:00
pg_foreign_server.h Add primary keys and unique constraints to system catalogs 2021-01-30 19:44:29 +01:00
pg_foreign_table.h Add primary keys and unique constraints to system catalogs 2021-01-30 19:44:29 +01:00
pg_index.h Add primary keys and unique constraints to system catalogs 2021-01-30 19:44:29 +01:00
pg_inherits.h Add primary keys and unique constraints to system catalogs 2021-01-30 19:44:29 +01:00
pg_init_privs.h Add primary keys and unique constraints to system catalogs 2021-01-30 19:44:29 +01:00
pg_language.dat Update copyright for 2021 2021-01-02 13:06:25 -05:00
pg_language.h Add primary keys and unique constraints to system catalogs 2021-01-30 19:44:29 +01:00
pg_largeobject.h Add primary keys and unique constraints to system catalogs 2021-01-30 19:44:29 +01:00
pg_largeobject_metadata.h Add primary keys and unique constraints to system catalogs 2021-01-30 19:44:29 +01:00
pg_namespace.dat Update copyright for 2021 2021-01-02 13:06:25 -05:00
pg_namespace.h Add primary keys and unique constraints to system catalogs 2021-01-30 19:44:29 +01:00
pg_opclass.dat Run reformat-dat-files to declutter the catalog data files. 2021-01-13 16:14:38 -05:00
pg_opclass.h Add primary keys and unique constraints to system catalogs 2021-01-30 19:44:29 +01:00
pg_operator.dat Run reformat-dat-files to declutter the catalog data files. 2021-01-13 16:14:38 -05:00
pg_operator.h Add primary keys and unique constraints to system catalogs 2021-01-30 19:44:29 +01:00
pg_opfamily.dat Update copyright for 2021 2021-01-02 13:06:25 -05:00
pg_opfamily.h Add primary keys and unique constraints to system catalogs 2021-01-30 19:44:29 +01:00
pg_partitioned_table.h Add primary keys and unique constraints to system catalogs 2021-01-30 19:44:29 +01:00
pg_policy.h Add primary keys and unique constraints to system catalogs 2021-01-30 19:44:29 +01:00
pg_proc.dat Implementation of subscripting for jsonb 2021-01-31 23:50:40 +03:00
pg_proc.h Add primary keys and unique constraints to system catalogs 2021-01-30 19:44:29 +01:00
pg_publication.h Add primary keys and unique constraints to system catalogs 2021-01-30 19:44:29 +01:00
pg_publication_rel.h Add primary keys and unique constraints to system catalogs 2021-01-30 19:44:29 +01:00
pg_range.dat Run reformat-dat-files to declutter the catalog data files. 2021-01-13 16:14:38 -05:00
pg_range.h Add primary keys and unique constraints to system catalogs 2021-01-30 19:44:29 +01:00
pg_replication_origin.h Add primary keys and unique constraints to system catalogs 2021-01-30 19:44:29 +01:00
pg_rewrite.h Add primary keys and unique constraints to system catalogs 2021-01-30 19:44:29 +01:00
pg_seclabel.h Add primary keys and unique constraints to system catalogs 2021-01-30 19:44:29 +01:00
pg_sequence.h Add primary keys and unique constraints to system catalogs 2021-01-30 19:44:29 +01:00
pg_shdepend.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
pg_shdescription.h Add primary keys and unique constraints to system catalogs 2021-01-30 19:44:29 +01:00
pg_shseclabel.h Add primary keys and unique constraints to system catalogs 2021-01-30 19:44:29 +01:00
pg_statistic.h Add primary keys and unique constraints to system catalogs 2021-01-30 19:44:29 +01:00
pg_statistic_ext.h Add primary keys and unique constraints to system catalogs 2021-01-30 19:44:29 +01:00
pg_statistic_ext_data.h Add primary keys and unique constraints to system catalogs 2021-01-30 19:44:29 +01:00
pg_subscription.h Add primary keys and unique constraints to system catalogs 2021-01-30 19:44:29 +01:00
pg_subscription_rel.h Add primary keys and unique constraints to system catalogs 2021-01-30 19:44:29 +01:00
pg_tablespace.dat Update copyright for 2021 2021-01-02 13:06:25 -05:00
pg_tablespace.h Add primary keys and unique constraints to system catalogs 2021-01-30 19:44:29 +01:00
pg_transform.h Add primary keys and unique constraints to system catalogs 2021-01-30 19:44:29 +01:00
pg_trigger.h Add primary keys and unique constraints to system catalogs 2021-01-30 19:44:29 +01:00
pg_ts_config.dat Update copyright for 2021 2021-01-02 13:06:25 -05:00
pg_ts_config.h Add primary keys and unique constraints to system catalogs 2021-01-30 19:44:29 +01:00
pg_ts_config_map.dat Update copyright for 2021 2021-01-02 13:06:25 -05:00
pg_ts_config_map.h Add primary keys and unique constraints to system catalogs 2021-01-30 19:44:29 +01:00
pg_ts_dict.dat Update copyright for 2021 2021-01-02 13:06:25 -05:00
pg_ts_dict.h Add primary keys and unique constraints to system catalogs 2021-01-30 19:44:29 +01:00
pg_ts_parser.dat Update copyright for 2021 2021-01-02 13:06:25 -05:00
pg_ts_parser.h Add primary keys and unique constraints to system catalogs 2021-01-30 19:44:29 +01:00
pg_ts_template.dat Update copyright for 2021 2021-01-02 13:06:25 -05:00
pg_ts_template.h Add primary keys and unique constraints to system catalogs 2021-01-30 19:44:29 +01:00
pg_type.dat Implementation of subscripting for jsonb 2021-01-31 23:50:40 +03:00
pg_type.h Add primary keys and unique constraints to system catalogs 2021-01-30 19:44:29 +01:00
pg_user_mapping.h Add primary keys and unique constraints to system catalogs 2021-01-30 19:44:29 +01:00
reformat_dat_file.pl Update copyright for 2021 2021-01-02 13:06:25 -05:00
renumber_oids.pl Update copyright for 2021 2021-01-02 13:06:25 -05:00
storage.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
storage_xlog.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
toasting.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
unused_oids Update copyright for 2021 2021-01-02 13:06:25 -05:00