Closed anandkatti closed 3 years ago
postgres=# SELECT create_server(‘local’,’host=bos1-vcloud-static-172-134.eng.vmware.com dbname=postgres user=‘perf_mon’ port=5432'); postgres'# select server_connstr('local','dbname=postgres port=5432 user=profile_mon password=pwd_mon'); postgres'# SELECT set_server_size_sampling('local','23:00+03',interval '2 hour',interval '8 hour'); postgres'# SELECT FROM show_servers_size_sampling(); postgres'# SELECT profile.take_sample() postgres'# select snapshots() postgres'# SELECT FROM show_servers_size_sampling(); postgres'#
Here are the commands i executed.
No rows when i quired the DB.
Could you please help
there is no pg_profile DB created.
Here is the outout from each command -
[root@postgres pg_profile]# sudo make USE_PGXS=y install /bin/mkdir -p '/usr/pgsql-10/share/extension' /bin/mkdir -p '/usr/pgsql-10/share/extension' /bin/install -c -m 644 .//pg_profile.control '/usr/pgsql-10/share/extension/' /bin/install -c -m 644 pg_profile--0.3.3.sql pg_profile.control pg_profile--0.3.2--0.3.3.sql '/usr/pgsql-10/share/extension/' [root@postgres pg_profile]#
[root@postgres pg_profile]# make USE_PGXS=y installcheck /usr/pgsql-10/lib/pgxs/src/makefiles/../../src/test/regress/pg_regress --inputdir=./ --bindir='/usr/pgsql-10/bin' --dbname=contrib_regression create_extension server_management samples_and_reports export_import retention_and_baselines drop_extension kcache_create_extension server_management samples_and_reports kcache_stat_avail export_import retention_and_baselines kcache_drop_extension (using postmaster on Unix socket, default port) ============== dropping database "contrib_regression" ============== psql: FATAL: role "root" does not exist command failed: "/usr/pgsql-10/bin/psql" -X -c "DROP DATABASE IF EXISTS \"contrib_regression\"" "postgres" make: *** [installcheck] Error 2 [root@postgres pg_profile]#
[root@postgres pg_profile]# make USE_PGXS=y sqlfile make: Nothing to be done for `sqlfile'. [root@postgres pg_profile]#
Hi,
So, what you need to do...
pg_profile--0.3.3.tar.gz
fileselect take_sample()
.All the above is described in Install and Taking samples sections the documentation.
Hi Sir ,
I tried to do that. But none of the samples are getting generated. Which table to i need to verify that snapshots are gettting generated.
Waiting for your response. It is urgent.
is it possible to have zoom or skype call to fix the things urgently. Could you please help with that. Urgently.
I tried all the options avaliable. But no help.
Yes it is possible, zoom
I tried to do that. But none of the samples are getting generated. Which table to i need to verify that snapshots are gettting generated.
If the take_sample()
function returns a "OK" message you have a sample.
You can view collected samples using the function show_samples()
postgres=# \dx
List of installed extensions
Name | Version | Schema | Description
--------------------+---------+------------+--------------------------------------------------------------
dblink | 1.2 | public | connect to other PostgreSQL databases from within a database
pg_profile | 0.1.1 | public | PostgreSQL load profile repository and report builder
pg_stat_statements | 1.6 | public | track execution statistics of all SQL statements executed
plpgsql | 1.0 | pg_catalog | PL/pgSQL procedural language
(4 rows)
postgres=#
pg_profile | 0.1.1 | public | PostgreSQL load profile repository and report builder
0.1.1 is a obsolete version. Current version is 0.3.3. I think you need to install the latest version.
postgres=# \dx
List of installed extensions
Name | Version | Schema | Description
--------------------+---------+------------+--------------------------------------------------------------
dblink | 1.2 | public | connect to other PostgreSQL databases from within a database
pg_profile | 0.1.1 | public | PostgreSQL load profile repository and report builder
pg_stat_statements | 1.6 | public | track execution statistics of all SQL statements executed
plpgsql | 1.0 | pg_catalog | PL/pgSQL procedural language
(4 rows)
postgres=# select show_samples(); ERROR: function show_samples() does not exist LINE 1: select show_samples(); ^ HINT: No function matches the given name and argument types. You might need to add explicit type casts. postgres=# select show_sample(); ERROR: function show_sample() does not exist LINE 1: select show_sample(); ^ HINT: No function matches the given name and argument types. You might need to add explicit type casts. postgres=#
i installed sir .. no error came
is it possible to have zoom call or skype so that i can share my screen ?
can u gudie me..it is really urgent. Please please ..i really need this extension badly.
Yes, I've provided you a link and I'm waiting for you there.
Yes it is possible, zoom
installed the the pg_profile in public.