https://github.com/ossc-db/pg_dbms_stats
Let PostgreSQL to make execution plans using frozen statistics.
https://github.com/ossc-db/pg_dbms_stats
Last synced: 2 months ago
JSON representation
Let PostgreSQL to make execution plans using frozen statistics.
- Host: GitHub
- URL: https://github.com/ossc-db/pg_dbms_stats
- Owner: ossc-db
- License: other
- Created: 2016-05-13T07:09:27.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2024-01-12T06:12:51.000Z (over 2 years ago)
- Last Synced: 2024-03-26T05:09:58.900Z (about 2 years ago)
- Language: PLpgSQL
- Homepage:
- Size: 448 KB
- Stars: 24
- Watchers: 18
- Forks: 13
- Open Issues: 10
-
Metadata Files:
- Readme: README.installcheck
- Changelog: ChangeLog
Awesome Lists containing this project
README
Preparation for make installcheck
1. Install pg_dbms_stats into the target binary tree. Make sure to
prepare the PATH environment variable properly to execute the right
pg_config for the version of target PostgreSQL server.
postgres$ which pg_config
/pg_config
postgres$ make install
2. Install additionally required contrib module file_fdw. This could
be done for RPM installed server by installing postgresql##-contrib
using yum after installing additional repository.
# yum install postgresql96-contrib
3. Edit postgresql.conf so that pg_dbms stats will be automatically
loaded.
postgres$ echo "shared_preload_libraries = 'pg_dbms_stats'" >> /postgresql.conf
4. Start the target server
postgres$ postgres or pg_ctl start
5. Install extension on the server.
postgres$ psql postgres -c 'CREATE EXTENSION pg_dbms_stats; CREATE EXTENSION file_fdw;'
6. run make installcheck
postgres$ make installcheck