From: anand086 <anand086@gmail.com>
To: pgsql-admin@postgresql.org
Subject: Analyze Table
Date: Fri, 18 Aug 2017 09:50:47 -0700 (MST)
Message-ID: <1503075047520-5979024.post@n3.nabble.com> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>
Hello All,
We have a requirement wherein, analyze table needs to be called from within
the application.
To give a background, we have schema called "dev" under which all the tables
are created, then we have "dev_dba" user which has been granted ownership of
all tables and then we have "dev_user" (application user) accessing the data
from the java application.
The application code run as dev_user, needs to analyze the table in case
application does truncate and insert data (~ 10 millions rows).
As per my understanding, only the owner of the table can analyze the table
and we do not want to make "dev_user" the owner.
What is the best possible way to get the table analyzed from application
code without changing granting owner to dev_user?
Thank you for your time.
Regards,
Anand
--
View this message in context: http://www.postgresql-archive.org/Analyze-Table-tp5979024.html
Sent from the PostgreSQL - admin mailing list archive at Nabble.com.
--
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: anand086@gmail.com
Subject: Re: Analyze Table
In-Reply-To: <1503075047520-5979024.post@n3.nabble.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox