Skip to content

Commit 001166a

Browse files
committed
some notes regarding partition creation callback (thanks to @thamerlan)
1 parent 49c6f70 commit 001166a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ Enable/disable auto partition propagation (only for RANGE partitioning). It is e
272272
```plpgsql
273273
set_init_callback(relation REGCLASS, callback REGPROC DEFAULT 0)
274274
```
275-
Set partition creation callback to be invoked for each attached or created partition (both HASH and RANGE). The callback must have the following signature: `part_init_callback(args JSONB) RETURNS VOID`. Parameter `arg` consists of several fields whose presence depends on partitioning type:
275+
Set partition creation callback to be invoked for each attached or created partition (both HASH and RANGE). If callback is marked with SECURITY INVOKER, it's executed with the privileges of the user that produced a statement which has led to creation of a new partition (e.g. `INSERT INTO partitioned_table VALUES (-5)`). The callback must have the following signature: `part_init_callback(args JSONB) RETURNS VOID`. Parameter `arg` consists of several fields whose presence depends on partitioning type:
276276
```json
277277
/* RANGE-partitioned table abc (child abc_4) */
278278
{

0 commit comments

Comments
 (0)