Thank you for your quick update. SECURITY DEFINER resolved the issue :) Regards, Anand -- View this message in context: http://www.postgresql-archive.org/Analyze-Table-tp5979024p5979032.html Sent from the PostgreSQL - admin mailing list archive at Nabble.com. -- Sent via pgsql-admin mailing list (pgsql-admin@xxxxxxxxxxxxxx) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin