postgres get current database name code example Example: postgresql show current database SELECT current_database();