Using PostgreSQL 16, version HEAD.
I've created the current table as follows:
testdb=> \d foo_current
Table "public.foo_current"
Column | Type | Collation | Nullable | Default
---------+------------------------+-----------+----------+------------------------------
p | integer | | not null | generated always as identity
t | text | | |
bt_info | vrsn.bitemporal_record | | |
but then when I try to register it and create the view:
testdb=> SELECT vrsn.admin__bitemporal_entity_register(
p_conf := '{
"current_table": {"schema_name": "public", "table_name": "foo_current"},
"historice_entity": "always",
"enable_history_attributes": true,
"main_fields_list": "p,t",
"cached_fields_list": "cached_attr_column",
"mitigate_conflicts": true,
"ignore_unchanged_values": true,
"enable_attribute_to_fields_replacement": false
}'::jsonb,
p_execute := TRUE
);
ERROR: invalid input syntax for type json
LINE 1: v_conf['operation_type']='create'
^
DETAIL: Token "create" is invalid.
QUERY: v_conf['operation_type']='create'
CONTEXT: JSON data, line 1: create
PL/pgSQL function vrsn.admin__bitemporal_entity_register(jsonb,boolean) line 30 at assignment
Am I doing something wrong here?
Using PostgreSQL 16, version
HEAD.I've created the current table as follows:
but then when I try to register it and create the view:
Am I doing something wrong here?