aboutsummaryrefslogtreecommitdiff
path: root/doc/src
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2004-05-26 18:35:51 +0000
committerBruce Momjian <bruce@momjian.us>2004-05-26 18:35:51 +0000
commit97d625dd1cf766e25815e1f6d5e5ee845f7b1030 (patch)
tree080dafb65de8c0537cb59e7ac76e87e91e91ea21 /doc/src
parent51227f8d9db81237a3da8133fa0dc5e39d9fc905 (diff)
downloadpostgresql-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 'doc/src')
-rw-r--r--doc/src/sgml/func.sgml37
1 files changed, 36 insertions, 1 deletions
diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml
index 3ead1346796..82081e514fa 100644
--- a/doc/src/sgml/func.sgml
+++ b/doc/src/sgml/func.sgml
@@ -1,5 +1,5 @@
<!--
-$PostgreSQL: pgsql/doc/src/sgml/func.sgml,v 1.204 2004/05/26 15:25:57 momjian Exp $
+$PostgreSQL: pgsql/doc/src/sgml/func.sgml,v 1.205 2004/05/26 18:35:31 momjian Exp $
PostgreSQL documentation
-->
@@ -6593,6 +6593,30 @@ SELECT NULLIF(value, '(none)') ...
</row>
<row>
+ <entry><function>inet_client_addr</function></entry>
+ <entry><type>inet</type></entry>
+ <entry>address of the remote connection</entry>
+ </row>
+
+ <row>
+ <entry><function>inet_client_port</function></entry>
+ <entry><type>int4</type></entry>
+ <entry>port of the remote connection</entry>
+ </row>
+
+ <row>
+ <entry><function>inet_server_addr</function></entry>
+ <entry><type>inet</type></entry>
+ <entry>address of the local connection</entry>
+ </row>
+
+ <row>
+ <entry><function>inet_server_port</function></entry>
+ <entry><type>int4</type></entry>
+ <entry>port of the local connection</entry>
+ </row>
+
+ <row>
<entry><function>session_user</function></entry>
<entry><type>name</type></entry>
<entry>session user name</entry>
@@ -6648,6 +6672,17 @@ SELECT NULLIF(value, '(none)') ...
</note>
<para>
+ <function>inet_client_addr</function> and
+ <function>inet_server_addr</function> return the IPv4 or IPv6 (if
+ configured) address of the remote or local host connecting to the
+ database, respectively. <function>inet_client_port</function>
+ and <function>inet_server_port</function> return the port number
+ of the remote or local host connecting to the database,
+ respectively. If the connection is not a network connection,
+ these functions will return <literal>NULL</literal>.
+ </para>
+
+ <para>
<function>current_schema</function> returns the name of the schema that is
at the front of the search path (or a null value if the search path is
empty). This is the schema that will be used for any tables or