diff options
author | Bruce Momjian <bruce@momjian.us> | 2004-05-26 18:35:51 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2004-05-26 18:35:51 +0000 |
commit | 97d625dd1cf766e25815e1f6d5e5ee845f7b1030 (patch) | |
tree | 080dafb65de8c0537cb59e7ac76e87e91e91ea21 /src/backend/libpq/ip.c | |
parent | 51227f8d9db81237a3da8133fa0dc5e39d9fc905 (diff) | |
download | postgresql-97d625dd1cf766e25815e1f6d5e5ee845f7b1030.tar.gz postgresql-97d625dd1cf766e25815e1f6d5e5ee845f7b1030.zip |
*) inet_(client|server)_(addr|port)() and necessary documentation for
the four functions.
> Also, please justify the temp-related changes. I was not aware that we
> had any breakage there.
patch-tmp-schema.txt contains the following bits:
*) Changes pg_namespace_aclmask() so that the superuser is always able
to create objects in the temp namespace.
*) Changes pg_namespace_aclmask() so that if this is a temp namespace,
objects are only allowed to be created in the temp namespace if the
user has TEMP privs on the database. This encompasses all object
creation, not just TEMP tables.
*) InitTempTableNamespace() checks to see if the current user, not the
session user, has access to create a temp namespace.
The first two changes are necessary to support the third change. Now
it's possible to revoke all temp table privs from non-super users and
limiting all creation of temp tables/schemas via a function that's
executed with elevated privs (security definer). Before this change,
it was not possible to have a setuid function to create a temp
table/schema if the session user had no TEMP privs.
patch-area-path.txt contains:
*) Can now determine the area of a closed path.
patch-dfmgr.txt contains:
*) Small tweak to add the library path that's being expanded.
I was using $lib/foo.so and couldn't easily figure out what the error
message, "invalid macro name in dynamic library path" meant without
looking through the source code. With the path in there, at least I
know where to start looking in my config file.
Sean Chittenden
Diffstat (limited to 'src/backend/libpq/ip.c')
-rw-r--r-- | src/backend/libpq/ip.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/libpq/ip.c b/src/backend/libpq/ip.c index bc6a7b98d8f..c8e3164978e 100644 --- a/src/backend/libpq/ip.c +++ b/src/backend/libpq/ip.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/libpq/ip.c,v 1.25 2004/04/24 20:10:34 tgl Exp $ + * $PostgreSQL: pgsql/src/backend/libpq/ip.c,v 1.26 2004/05/26 18:35:33 momjian Exp $ * * This file and the IPV6 implementation were initially provided by * Nigel Kukard <nkukard@lbsd.net>, Linux Based Systems Design @@ -73,11 +73,11 @@ getaddrinfo_all(const char *hostname, const char *servname, *result = NULL; #ifdef HAVE_UNIX_SOCKETS - if (hintp != NULL && hintp->ai_family == AF_UNIX) + if (hintp->ai_family == AF_UNIX) return getaddrinfo_unix(servname, hintp, result); #endif - /* NULL has special meaning to getaddrinfo */ + /* NULL has special meaning to getaddrinfo(). */ return getaddrinfo((!hostname || hostname[0] == '\0') ? NULL : hostname, servname, hintp, result); } |