Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit4347071

Browse files
committed
Emit debug message when executing extension script.
Allows extension authors to more easily debug problems related to thesequence of update scripts that are executed.Discussion:https://postgr.es/m/5636a7534a4833884172fe4369d825b26170b3cc.camel%40j-davis.comReviewed-by: Peter Eisentraut, Nathan Bossart
1 parent835d476 commit4347071

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)

[8]ページ先頭

©2009-2025 Movatter.jp