Replies: 1 comment
-
(Of course, thank you for the migration @tianon . I haven't worked "discussions" into my habit pattern. Sorry for the noise, and thank you again for such an excellent tool!) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Up front, I have used this image many times on multiple servers, both in docker and using pgdg-ppa installed packages; many thanks!
It's this last method (pgdg PPA) that requires slight mods.
This isn't a bug report, it's a note so that others experience similar problems, perhaps this can help.
Since the standard ubuntu mechanism is to store configuration in
/etc/postgresql/13/main
(using postgresql-13 as an example), all of its*.conf
files are there instead of where (I believe) these images assume they can be found (within/var/lib/postgresql/13/data
in this example). In order to get this image to work on an instance of postgresql installed from the pgdg PPA (https://apt.postgresql.org/...), I got errors aboutAfter incorrectly diving into that error, I realized that the migration attempt was interrupted after some seemingly good-looking output. (I should read all the output before trying to continue forward.) All of the failing efforts were due to small differences between the "docker-contained postgresql" and one installed from the ppa. (Ergo this "issue".)
Additionally, for some reason my
13
installation was using/var/lib/postgresql/13/main
instead of.../13/data
, so I had that minor glitch to work around. (I don't know if that is from some much older migration path I've done over the years, or if it was normal at one point.)These are all that I did in order to get the image to work (and work great it did):
copy all of the
/etc/postgresql/13/main/*conf
over to/var/lib/postgresql/13/data
many of those conf files referenced
/etc/postgresql/...
, so I had to edit in-place each of those to update the pathI had SSL configured in 13, so I had to disable all references in
/var/lib/postgresql/13/main/postgresql.conf
as well aspostgresql.auto.conf
if it was present and/or created in the process.call
docker
using the two-directory example in the standard docs here:after that was done, I had to re-
chown
everything, as inThis was necessary before attempting to restart the postgresql service, since the internal image
chown
s it to something else and doesn't change it back. Easy enough. (I found no perms changed, just the owner, so it seemed harmless enough.)And not related to the ubuntu/pgdg-ppa thing, on the upgrade from 14-to-15 I needed to comment out
stats_temp_directory
in the conf file since it was removed starting in postgresql-15 (no harm).Beta Was this translation helpful? Give feedback.
All reactions