Skip to content

Commit 19f5033

Browse files
author
Viktoria Shepard
committed
PBCKP-2559 add error message to add instance for incompatible Postgres version
1 parent 21fc4aa commit 19f5033

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/util.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,13 @@ digestControlFile(ControlFileData *ControlFile, char *src, size_t size)
9393
#endif
9494

9595
if (size != ControlFileSize)
96+
{
97+
if (size == 16384)
98+
elog(ERROR, "Unexpected control file size %d, expected %d. Probably you trying to connect Postgres Pro using %s built with PostgreSQL. ",
99+
(int) size, ControlFileSize, PROGRAM_NAME);
96100
elog(ERROR, "Unexpected control file size %d, expected %d",
97101
(int) size, ControlFileSize);
102+
}
98103

99104
memcpy(ControlFile, src, sizeof(ControlFileData));
100105

0 commit comments

Comments
 (0)