postgresql database permissions see code example Example: postgresql show current database SELECT current_database();