You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it possible to customize the PGDATA value used by the bootstrap image?
By default, the directory /var/lib/postgresql/data/pgdata is used to initialize the database because /var/lib/postgresql/data is backed by a PVC, making it writable.
I’d like to change it to /var/lib/postgresql/data/db/pgdata. The reason is that I want to create a separate folder at /var/lib/postgresql/data/plugins where I can copy PostgreSQL extension files while the pod is running. Copying these files requires a writable path (PVC) but don't want to conflict with the actuall database files.
I cannot copy the extensions into the same directory as PGDATA, as it causes a conflict with the init container’s command, which reports that the "data folder isn’t empty."
Another option is could it be possible to change the mount path used by the pods? For example mouting /var/lib/postgresql/ path
The text was updated successfully, but these errors were encountered:
yemaney
changed the title
Custom PGDATA?
Custom PGDATA or change mount path of /var/lib/postgresql/data?
Nov 18, 2024
Is it possible to customize the PGDATA value used by the bootstrap image?
By default, the directory /var/lib/postgresql/data/pgdata is used to initialize the database because /var/lib/postgresql/data is backed by a PVC, making it writable.
I’d like to change it to /var/lib/postgresql/data/db/pgdata. The reason is that I want to create a separate folder at /var/lib/postgresql/data/plugins where I can copy PostgreSQL extension files while the pod is running. Copying these files requires a writable path (PVC) but don't want to conflict with the actuall database files.
I cannot copy the extensions into the same directory as PGDATA, as it causes a conflict with the init container’s command, which reports that the "data folder isn’t empty."
Another option is could it be possible to change the mount path used by the pods? For example mouting
/var/lib/postgresql/
pathThe text was updated successfully, but these errors were encountered: