mirror of
https://github.com/postgres/postgres.git
synced 2025-08-06 18:42:54 +03:00
pg_upgrade: Split off pg_fatal() from pg_log()
This allows decorating pg_fatal() with noreturn compiler hints, leading to better diagnostics. Reviewed-by: Marko Tiikkaja <marko@joh.to>
This commit is contained in:
@@ -204,8 +204,7 @@ check_hard_link(void)
|
||||
|
||||
if (pg_link_file(existing_file, new_link_file) == -1)
|
||||
{
|
||||
pg_log(PG_FATAL,
|
||||
"Could not create hard link between old and new data directories: %s\n"
|
||||
pg_fatal("Could not create hard link between old and new data directories: %s\n"
|
||||
"In link mode the old and new data directories must be on the same file system volume.\n",
|
||||
getErrorText(errno));
|
||||
}
|
||||
|
Reference in New Issue
Block a user