mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-01-24 18:55:04 +08:00
Improve plpython fix comment in pg_upgrade.
This commit is contained in:
parent
cfe443ab9d
commit
a7f2c79a6e
@ -236,6 +236,10 @@ check_loadable_libraries(void)
|
|||||||
* plpython2u pointing to it. For this reason, any reference to
|
* plpython2u pointing to it. For this reason, any reference to
|
||||||
* library name "plpython" in an old PG <= 9.1 cluster must look
|
* library name "plpython" in an old PG <= 9.1 cluster must look
|
||||||
* for "plpython2" in the new cluster.
|
* for "plpython2" in the new cluster.
|
||||||
|
*
|
||||||
|
* For this case, we could check pg_pltemplate, but that only works
|
||||||
|
* for languages, and does not help with function shared objects,
|
||||||
|
* so we just do a general fix.
|
||||||
*/
|
*/
|
||||||
if (GET_MAJOR_VERSION(old_cluster.major_version) < 901 &&
|
if (GET_MAJOR_VERSION(old_cluster.major_version) < 901 &&
|
||||||
strcmp(lib, "$libdir/plpython") == 0)
|
strcmp(lib, "$libdir/plpython") == 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user