Another great hidden feature is the LISTEN/NOTIFY system. You can use it to watch for changes on a table, and then use that to e.g. update a view in the UI.
For example create a table with a trigger on insert "NOTIFY new_data". Then on query do
LISTEN new_data;
SELECT ...;
Now you'll get the results and any future updates.