Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> SELECT * FROM pg_class WHERE oid = 'pg_class'::regclass;

This selects every column (*) from every table (ObjectID is of type regclass)?



Sorry, I should have used something more standard - but it was what I had ready...

It just selects every column from a single table, pg_class. Which is where postgres stores information about relations that exist in the current database.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: