Skip to content

Commit

Permalink
md fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mkgrgis committed Jan 26, 2024
1 parent 607ef11 commit 86e3d56
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -282,13 +282,14 @@ Following restrictions apply:
Data modification access in `sqlite_fdw` drived by both operating system and PostgreSQL. OS restrictions can disallow any SQLite data modifications and any PostgreSQL options context about data modification will have absolutely no effect. SQLite data modification will be succesfully only if there is all necessary conditions on both operating system and PostgreSQL levels.

#### OS permissions
**In OS** `sqlite_fdw` works as executed code with permissions of user of PostgreSQL server. Usually it is `postgres` OS user. For **any** access to SQLite database such filesystem permissions for PostgreSQL server OS user are absolutely necessary:
In OS `sqlite_fdw` works as executed code with permissions of user of PostgreSQL server. Usually it is `postgres` OS user. For **any** access to SQLite database such filesystem permissions for PostgreSQL server OS user are absolutely necessary:
- read permission on all directories by path to the SQLite database file,
- read permission on SQLite database file.

For SQLite data **modification** such _additional_ filesystem permissions for PostgreSQL server OS user are absolutely necessary:
- write permission on a directory of SQLite database file (because SQLite creates some temporary transaction files),
- write permission on SQLite database file.

Otherwise there will be shown error message from SQLite like `failed to execute remote SQL: rc=8 attempt to write a readonly database`.

#### PostgreSQL options/permissions
Expand Down

0 comments on commit 86e3d56

Please sign in to comment.