Commit 908b5dfc authored by damien clochard's avatar damien clochard 🐘
Browse files

[doc] [CI] 9.5 is EOL

parent b8df179a
Pipeline #253328408 passed with stages
in 2 minutes and 50 seconds
......@@ -60,28 +60,6 @@ lint-markdown:
## B U I L D
##
# PostgreSQL 9.5 is not supported
make9.5:
stage: build
image: postgres:9.5
script:
- apt-get update
- apt-get install -y --no-install-recommends make gcc postgresql-server-dev-9.5 pgxnclient
- pgxn install ddlx
- make extension
- make install
- psql -c "ALTER SYSTEM SET session_preload_libraries = 'anon'"
- psql -c "SELECT pg_reload_conf();"
- make installcheck || diff results tests/expected
artifacts:
paths:
- anon*
- regression.*
- results/
expire_in: 1 day
when: manual
allow_failure: yes
make9.6:
stage: build
image: postgres:9.6
......
......@@ -191,11 +191,9 @@ You can either [open an issue] or send a message at <contact@dalibo.com>.
Requirements
--------------------------------------------------------------------------------
This extension is officially supported on PostgreSQL 9.6 and later.
It should also work on PostgreSQL 9.5 with a bit of hacking.
See the [Development Notes] for more details.
This extension works with all [supported versions of PostgreSQL].
[Developement Notes]: https://postgresql-anonymizer.readthedocs.io/en/latest/NOTES/
[supported versions of PostgreSQL]: https://www.postgresql.org/support/versioning/
It requires 2 extensions called [tsm_system_rows] and [pgcrypto] which are
delivered by the `postgresql-contrib` package of the main linux distributions.
......
Development Notes
===============================================================================
Support for PostgreSQL 9.5
-------------------------------------------------------------------------------
PostgeSQL 9.5 has 2 main issues for this extension :
* The pg_config table is called by the init() function but it was introduced
in PG 9.6. You can simplify create a temporary pg_config table just before
loading the extension:
```sql
CREATE TEMPORARY TABLE pg_config AS
SELECT 'SHAREDIR'::TEXT AS name,
'/usr/share/postgresql/9.5'::TEXT AS setting
;
```
* The CASCADE option is not available with PG 9.5. So you need to load
`tsm_system_rows` manually:
```sql
CREATE EXTENSION IF NOT EXISTS tsm_system_rows;
CREATE EXTENSION IF NOT EXISTS anon;
```
Building a C extension
-------------------------------------------------------------------------------
* https://www.postgresql.org/message-id/flat/CAJGNTeP%3D-6Gyqq5TN9OvYEydi7Fv1oGyYj650LGTnW44oAzYCg%40mail.gmail.com
......@@ -18,5 +18,4 @@ nav:
- 'Concepts': 'concepts.md'
- 'Upgrade': 'UPGRADE.md'
- 'Security': 'SECURITY.md'
- 'Notes': 'NOTES.md'
- 'Links': 'links.md'
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment