Event triggers in PostgreSQL 9.3 / 9.4

Well in versions 9.3 and 9.4 event triggers are something like “very good start”. You can use them quite well but it is not exactly 100% comfortable. How to use them: Create function which returns “event_trigger”. Function will end with just...

System information functions

Do you want to see all results at once? select 'current_database()' as _command, current_database() as _result, 'name of current database' as _description union all select 'current_schema()', current_schema(), 'name of current schema' union all select...