Skip to content

Commit

Permalink
Remove documentation for non-superuser configuration.
Browse files Browse the repository at this point in the history
Those steps were required to be able to perform an explicit LOAD of pgtt as a
non-superuser, but this is not required anymore now that pgtt can be used in
session_preload_libraries.
  • Loading branch information
rjuju committed Jun 23, 2024
1 parent 7fe7499 commit ef79a91
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,15 +112,9 @@ package. Once `pg_config` is in your path, do
make
sudo make install

If the extension will be used by a non-superuser role, you need to
add the library to the $libdir/plugins/ directory.
Then it will be possible to use it using `session_preload_libraries = 'pgtt'`
in postgresql.conf

export libdir=$(pg_config --pkglibdir)
sudo mkdir $libdir/plugins/
cd $libdir/plugins/
sudo ln -s ../pgtt.so

Then it will be possible to use it using `session_preload_libraries = 'pgtt'` in postgresql.conf
To create and manage GTT using a non-superuser role you will have to grant
the CREATE privilege on the `pgtt_schema` schema to the user. For example:

Expand Down

0 comments on commit ef79a91

Please sign in to comment.