insert_username
functions for tracking who changed a table
Overview
| Package | Version | Category | License | Language |
|---|---|---|---|---|
insert_username | 1.0 | FUNC | PostgreSQL | C |
| ID | Extension | Bin | Lib | Load | Create | Trust | Reloc | Schema |
|---|---|---|---|---|---|---|---|---|
| 4882 | insert_username | No | Yes | No | Yes | No | No | - |
| Related | tcn refint autoinc moddatetime table_log |
|---|
Version
| PG18 | PG17 | PG16 | PG15 | PG14 |
|---|---|---|---|---|
| 1.0 | 1.0 | 1.0 | 1.0 | 1.0 |
Install
Note: This is a built-in contrib extension of PostgreSQL
Usage
Provides a trigger function that stores the current user’s name into a specified text column.
Trigger Function
| Function | Description |
|---|---|
insert_username() | Store current username in the specified column |
Parameter: name of the text column to store the username.
Examples
Was this page helpful?
Thanks—your feedback helps us improve this page.
What got in the way? (optional)