You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`pgv_set_int(package text, name text, value int)` | `void`
103
+
`pgv_set_int(package text, name text, value int, is_transactional bool default false)` | `void`
89
104
`pgv_get_int(package text, name text, strict bool default true)` | `int`
90
105
91
106
### Text variables
92
107
93
108
Function | Returns
94
109
-------- | -------
95
-
`pgv_set_text(package text, name text, value text)` | `void`
110
+
`pgv_set_text(package text, name text, value text, is_transactional bool default false)` | `void`
96
111
`pgv_get_text(package text, name text, strict bool default true)` | `text`
97
112
98
113
### Numeric variables
99
114
100
115
Function | Returns
101
116
-------- | -------
102
-
`pgv_set_numeric(package text, name text, value numeric)` | `void`
117
+
`pgv_set_numeric(package text, name text, value numeric, is_transactional bool default false)` | `void`
103
118
`pgv_get_numeric(package text, name text, strict bool default true)` | `numeric`
104
119
105
120
### Timestamp variables
106
121
107
122
Function | Returns
108
123
-------- | -------
109
-
`pgv_set_timestamp(package text, name text, value timestamp)` | `void`
124
+
`pgv_set_timestamp(package text, name text, value timestamp, is_transactional bool default false)` | `void`
110
125
`pgv_get_timestamp(package text, name text, strict bool default true)` | `timestamp`
111
126
112
127
### Timestamp with timezone variables
113
128
114
129
Function | Returns
115
130
-------- | -------
116
-
`pgv_set_timestamptz(package text, name text, value timestamptz)` | `void`
131
+
`pgv_set_timestamptz(package text, name text, value timestamptz, is_transactional bool default false)` | `void`
117
132
`pgv_get_timestamptz(package text, name text, strict bool default true)` | `timestamptz`
118
133
119
134
### Date variables
120
135
121
136
Function | Returns
122
137
-------- | -------
123
-
`pgv_set_date(package text, name text, value date)` | `void`
138
+
`pgv_set_date(package text, name text, value date, is_transactional bool default false)` | `void`
124
139
`pgv_get_date(package text, name text, strict bool default true)` | `date`
125
140
126
141
### Jsonb variables
127
142
128
143
Function | Returns
129
144
-------- | -------
130
-
`pgv_set_jsonb(package text, name text, value jsonb)` | `void`
145
+
`pgv_set_jsonb(package text, name text, value jsonb, is_transactional bool default false)` | `void`
131
146
`pgv_get_jsonb(package text, name text, strict bool default true)` | `jsonb`
132
147
133
148
## Record variables functions
@@ -146,7 +161,7 @@ raised.
146
161
147
162
Function | Returns | Description
148
163
-------- | ------- | -----------
149
-
`pgv_insert(package text, name text, r record)` | `void` | Inserts a record to the variable collection. If package and variable do not exists they will be created. The first column of **r** will be a primary key. If exists a record with the same primary key the error will be raised. If this variable collection has other structure the error will be raised.
164
+
`pgv_insert(package text, name text, r record, is_transactional bool default false)` | `void` | Inserts a record to the variable collection. If package and variable do not exists they will be created. The first column of **r** will be a primary key. If exists a record with the same primary key the error will be raised. If this variable collection has other structure the error will be raised.
150
165
`pgv_update(package text, name text, r record)` | `boolean` | Updates a record with the corresponding primary key (the first column of **r** is a primary key). Returns **true** if a record was found. If this variable collection has other structure the error will be raised.
151
166
`pgv_delete(package text, name text, value anynonarray)` | `boolean` | Deletes a record with the corresponding primary key (the first column of **r** is a primary key). Returns **true** if a record was found.
152
167
`pgv_select(package text, name text)` | `set of record` | Returns the variable collection records.
@@ -162,7 +177,7 @@ Function | Returns | Description
162
177
`pgv_remove(package text, name text)` | `void` | Removes the variable with the corresponding name. Required package and variable must exists, otherwise the error will be raised.
163
178
`pgv_remove(package text)` | `void` | Removes the package and all package variables with the corresponding name. Required package must exists, otherwise the error will be raised.
164
179
`pgv_free()` | `void` | Removes all packages and variables.
165
-
`pgv_list()` | `table(package text, name text)` | Returns set of records of assigned packages and variables.
180
+
`pgv_list()` | `table(package text, name text, is_transactional bool)` | Returns set of records of assigned packages and variables.
166
181
`pgv_stats()` | `table(package text, used_memory bigint)` | Returns list of assigned packages and used memory in bytes.
167
182
168
183
Note that **pgv_stats()** works only with the PostgreSQL 9.6 and newer.
0 commit comments