How to show all invalid objects in PostgresQL -


looking view can list 'invalid' objects in postgresql. in oracle, can use dab_objects.status column i'm not sure if there simple way such thing in postgresql.

maybe, can check invalid indexes below code. how can other objects?

select pg_class.relname  pg_class, pg_index  pg_index.indisvalid = false  , pg_index.indexrelid = pg_class.oid; 

i don't think have check else, since other objects cannot become invalid in postgresql.

oracle , postgresql work quite differently in respect.
in oracle, can alter object (for example table) if there dependent objects (for example views). dependent objects become invalid , have recompiled.
in postgresql, cannot alter object has dependend objects in way renders these dependent objects invalid. have drop , recreate dependent objects.

invalid indexes can left behind failed create index command.


Comments

Popular posts from this blog

mysql - Dreamhost PyCharm Django Python 3 Launching a Site -

java - Sending SMS with SMSLib and Web Services -

python 3.5 - Pyqtgraph string in x tick -