Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 601112 - dev-db/postgresql-9.1.24 default config plperl.on_init startup failure
Summary: dev-db/postgresql-9.1.24 default config plperl.on_init startup failure
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: PgSQL Bugs
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2016-11-28 19:59 UTC by Chris White
Modified: 2017-08-10 16:04 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
postgresql plperl.on_init patch (postgresql-9.1-plperl.patch,1.06 KB, patch)
2016-11-28 19:59 UTC, Chris White
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Chris White 2016-11-28 19:59:47 UTC
Created attachment 454626 [details, diff]
postgresql plperl.on_init patch

After compiling postgres 9.1 on a cleanly built system with the default configuration file generated via --config the server would not start due to the following error:

----
 * Caching service dependencies ...                                                                                                                                                                     [ ok ]
 * /run/postgresql: correcting mode
 * Starting PostgreSQL ...
FATAL:  unrecognized configuration parameter "plperl.on_init"
 * start-stop-daemon: failed to start `/usr/lib64/postgresql-9.1/bin/postgres'
 * Check the log for a possible explanation of the above error. The log may be
 *     /var/lib/postgresql/9.1/data/postmaster.log
 * Or wherever you configured PostgreSQL 9.1 log messages to be sent.                                                                                                                                   [ !! ]
 * ERROR: postgresql-9.1 failed to start
----

According to the postgres 9.1 docs ( https://www.postgresql.org/docs/9.1/static/runtime-config-custom.html#GUC-CUSTOM-VARIABLE-CLASSES ) it appears that a `custom_variable_classes = 'plperl'` entry is needed. Also plperl is being added to the config regardless of perl support being enabled or not. The attached patch attempts to address this in the ebuild.
Comment 1 Aaron W. Swenson gentoo-dev 2017-08-10 16:04:30 UTC
dev-db/postgresql-9.1 removed.