Skip to content

Commit a7ca73a

Browse files
committed
Remove translation marker from libpq-be-fe-helpers.h.
Commit 112faf1 introduced a translation marker in libpq-be-fe-helpers.h, but this caused build failures on some platforms—such as the one reported by buildfarm member indri—due to linker issues with dblink. This is the same problem previously addressed in commit 213c959. To fix the issue, this commit removes the translation marker from libpq-be-fe-helpers.h, following the approach used in 213c959. It also removes the associated gettext_noop() calls added in commit 112faf1, as they are no longer needed. While reviewing this, a gettext_noop() call was also found in contrib/basic_archive. Since contrib modules don't support translation, this call has been removed as well. Per buildfarm member indri. Author: Fujii Masao <masao.fujii@gmail.com> Reviewed-by: Álvaro Herrera <alvherre@kurilemu.de> Discussion: https://postgr.es/m/0e6299d9-608a-4ffa-aeb1-40cb8a99000b@oss.nttdata.com
1 parent d3f97fd commit a7ca73a

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

contrib/basic_archive/basic_archive.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ void
6565
_PG_init(void)
6666
{
6767
DefineCustomStringVariable("basic_archive.archive_directory",
68-
gettext_noop("Archive file destination directory."),
68+
"Archive file destination directory.",
6969
NULL,
7070
&archive_directory,
7171
"",

contrib/dblink/dblink.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ dblink_get_conn(char *conname_or_str,
242242
}
243243

244244
PQsetNoticeReceiver(conn, libpqsrv_notice_receiver,
245-
gettext_noop("received message via remote connection"));
245+
"received message via remote connection");
246246

247247
dblink_security_check(conn, NULL, connstr);
248248
if (PQclientEncoding(conn) != GetDatabaseEncoding())
@@ -343,7 +343,7 @@ dblink_connect(PG_FUNCTION_ARGS)
343343
}
344344

345345
PQsetNoticeReceiver(conn, libpqsrv_notice_receiver,
346-
gettext_noop("received message via remote connection"));
346+
"received message via remote connection");
347347

348348
/* check password actually used if not superuser */
349349
dblink_security_check(conn, connname, connstr);

contrib/postgres_fdw/connection.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -626,7 +626,7 @@ connect_pg_server(ForeignServer *server, UserMapping *user)
626626
errdetail_internal("%s", pchomp(PQerrorMessage(conn)))));
627627

628628
PQsetNoticeReceiver(conn, libpqsrv_notice_receiver,
629-
gettext_noop("received message via remote connection"));
629+
"received message via remote connection");
630630

631631
/* Perform post-connection security checks. */
632632
pgfdw_security_check(keywords, values, user, conn);

src/backend/replication/libpqwalreceiver/libpqwalreceiver.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ libpqrcv_connect(const char *conninfo, bool replication, bool logical,
233233
}
234234

235235
PQsetNoticeReceiver(conn->streamConn, libpqsrv_notice_receiver,
236-
gettext_noop("received message via replication"));
236+
"received message via replication");
237237

238238
/*
239239
* Set always-secure search path for the cases where the connection is

src/include/libpq/libpq-be-fe-helpers.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,7 @@ libpqsrv_notice_receiver(void *arg, const PGresult *res)
481481
len--;
482482

483483
ereport(LOG,
484-
errmsg_internal("%s: %.*s", _(prefix), len, message));
484+
errmsg_internal("%s: %.*s", prefix, len, message));
485485
}
486486

487487
#endif /* LIBPQ_BE_FE_HELPERS_H */

0 commit comments

Comments
 (0)