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

Commit846681f

Browse files
committed
Fix some unportable constructs in parallel pg_dump code.
Didn't compile on semi-obsolete gcc, and probably not on not-gcc-at-alleither.
1 parent9e257a1 commit846681f

File tree

3 files changed

+9
-11
lines changed

3 files changed

+9
-11
lines changed

‎src/bin/pg_dump/dumputils.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ typedef void (*on_exit_nicely_callback) (int code, void *arg);
4444

4545
externintquote_all_identifiers;
4646
externconstchar*progname;
47+
externvoid (*on_exit_msg_func) (constchar*modulename,constchar*fmt,va_listap);
4748

4849
externvoidinit_parallel_dump_utils(void);
4950
externconstchar*fmtId(constchar*identifier);
@@ -87,8 +88,6 @@ __attribute__((format(PG_PRINTF_ATTRIBUTE, 2, 0)));
8788
externvoid
8889
exit_horribly(constchar*modulename,constchar*fmt,...)
8990
__attribute__((format(PG_PRINTF_ATTRIBUTE,2,3),noreturn));
90-
externvoid (*on_exit_msg_func) (constchar*modulename,constchar*fmt,va_listap)
91-
__attribute__((format(PG_PRINTF_ATTRIBUTE,2,0)));
9291
externvoidon_exit_nicely(on_exit_nicely_callbackfunction,void*arg);
9392
externvoidexit_nicely(intcode) __attribute__((noreturn));
9493

‎src/bin/pg_dump/parallel.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,6 @@ typedef enum
2929
WRKR_FINISHED
3030
}T_WorkerStatus;
3131

32-
typedefenumT_Action
33-
{
34-
ACT_DUMP,
35-
ACT_RESTORE,
36-
}T_Action;
37-
3832
/* Arguments needed for a worker process */
3933
typedefstructParallelArgs
4034
{

‎src/bin/pg_dump/pg_backup_archiver.h

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,12 @@ struct _tocEntry;
114114
struct_restoreList;
115115
structParallelArgs;
116116
structParallelState;
117-
enumT_Action;
117+
118+
typedefenumT_Action
119+
{
120+
ACT_DUMP,
121+
ACT_RESTORE
122+
}T_Action;
118123

119124
typedefvoid (*ClosePtr) (struct_archiveHandle*AH);
120125
typedefvoid (*ReopenPtr) (struct_archiveHandle*AH);
@@ -145,9 +150,9 @@ typedef void (*DeClonePtr) (struct _archiveHandle * AH);
145150
typedefchar*(*WorkerJobRestorePtr) (struct_archiveHandle*AH,struct_tocEntry*te);
146151
typedefchar*(*WorkerJobDumpPtr) (struct_archiveHandle*AH,struct_tocEntry*te);
147152
typedefchar*(*MasterStartParallelItemPtr) (struct_archiveHandle*AH,struct_tocEntry*te,
148-
enumT_Actionact);
153+
T_Actionact);
149154
typedefint (*MasterEndParallelItemPtr) (struct_archiveHandle*AH,struct_tocEntry*te,
150-
constchar*str,enumT_Actionact);
155+
constchar*str,T_Actionact);
151156

152157
typedefsize_t (*CustomOutPtr) (struct_archiveHandle*AH,constvoid*buf,size_tlen);
153158

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp