+
+ RENDEZVOUS_NAME (string)
+
+ Specifies the Rendezvous broadcast name. By default, the
+ computer name is used, specified as ''.
+
+
+
+
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.334 2003/07/22 19:00:10 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.335 2003/07/22 20:29:13 momjian Exp $
*
* NOTES
*
bool Log_connections = false;
bool Db_user_namespace = false;
+char *rendezvous_name;
+
/* For FNCTL_NONBLOCK */
#if defined(WIN32) || defined(__BEOS__)
long ioctlsocket_ret;
"socket.");
}
}
-#ifdef USE_RENDEZVOUS
- if (service_name != NULL)
- {
- DNSServiceRegistrationCreate(NULL, /* default to hostname */
- "_postgresql._tcp.",
- "",
- htonl(PostPortNumber),
- "",
- (DNSServiceRegistrationReply)reg_reply,
- NULL);
- }
+#ifdef USE_RENDEZVOUS
+ if (rendezvous_name != NULL)
+ {
+ DNSServiceRegistrationCreate(rendezvous_name,
+ "_postgresql._tcp.",
+ "",
+ htonl(PostPortNumber),
+ "",
+ (DNSServiceRegistrationReply)reg_reply,
+ NULL);
+ }
#endif
}
* Written by Peter Eisentraut
.
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/utils/misc/guc.c,v 1.137 2003/07/15 19:19:56 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/misc/guc.c,v 1.138 2003/07/22 20:29:13 momjian Exp $
*
*--------------------------------------------------------------------
*/
PG_KRB_SRVTAB, NULL, NULL
},
+ {
+ {"rendezvous_name", PGC_POSTMASTER, CONN_AUTH_SETTINGS,
+ gettext_noop("The Rendezvous broadcast service name"),
+ NULL
+ },
+ &rendezvous_name,
+ "", NULL, NULL
+ },
+
/* See main.c about why defaults for LC_foo are not all alike */
{
#unix_socket_group = ''
#unix_socket_permissions = 0777 # octal
#virtual_host = ''
+#rendezvous_name = '' # defaults to the computer name
# - Security & Authentication -
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: tcopprot.h,v 1.57 2003/05/05 00:44:56 tgl Exp $
+ * $Id: tcopprot.h,v 1.58 2003/07/22 20:29:13 momjian Exp $
*
* OLD COMMENTS
* This file was created so that other c files could get the two
extern bool log_hostname;
extern bool LogSourcePort;
extern DLLIMPORT const char *debug_query_string;
+extern char *rendezvous_name;
#ifndef BOOTSTRAP_INCLUDE