Book Contents

Book Index

Next Topic

Home

CURRENT_USER

CURRENT_USER returns a VARCHAR containing the name of the user who initiated the current database connection.

Syntax

CURRENT_USER

Notes

Examples

=> SELECT CURRENT_USER;

current_user

--------------

dbadmin

(1 row)