Skip to content

Commit 4347071

Browse files
committed
Emit debug message when executing extension script.
Allows extension authors to more easily debug problems related to the sequence of update scripts that are executed. Discussion: https://postgr.es/m/5636a7534a4833884172fe4369d825b26170b3cc.camel%40j-davis.com Reviewed-by: Peter Eisentraut, Nathan Bossart
1 parent 835d476 commit 4347071

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/backend/commands/extension.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -887,6 +887,11 @@ execute_extension_script(Oid extensionOid, ExtensionControlFile *control,
887887

888888
filename = get_extension_script_filename(control, from_version, version);
889889

890+
if (from_version == NULL)
891+
elog(DEBUG1, "executing extension script for \"%s\" version '%s'", control->name, version);
892+
else
893+
elog(DEBUG1, "executing extension script for \"%s\" update from version '%s' to '%s'", control->name, from_version, version);
894+
890895
/*
891896
* If installing a trusted extension on behalf of a non-superuser, become
892897
* the bootstrap superuser. (This switch will be cleaned up automatically

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy