moddatetime
functions for tracking last modification time
Overview
| Package | Version | Category | License | Language |
|---|---|---|---|---|
moddatetime | 1.0 | FUNC | PostgreSQL | C |
| ID | Extension | Bin | Lib | Load | Create | Trust | Reloc | Schema |
|---|---|---|---|---|---|---|---|---|
| 4883 | moddatetime | No | Yes | No | Yes | No | No | - |
| Related | tcn refint autoinc insert_username 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 timestamp when a row is modified.
Trigger Function
| Function | Description |
|---|---|
moddatetime() | Store current timestamp in the specified column on UPDATE |
Parameter: name of the timestamp or timestamp with time zone column to update.
Examples
Was this page helpful?
Thanks—your feedback helps us improve this page.
What got in the way? (optional)