Index: doc/src/sgml/func.sgml
===================================================================
RCS file: /cvsroot/pgsql/doc/src/sgml/func.sgml,v
retrieving revision 1.352
diff -c -c -r1.352 func.sgml
*** doc/src/sgml/func.sgml	20 Jan 2007 21:59:34 -0000	1.352
--- doc/src/sgml/func.sgml	30 Jan 2007 02:16:17 -0000
***************
*** 9892,9903 ****
    </para>
  
    <para>
!    <function>pg_get_serial_sequence</function> fetches the name of the
!    sequence associated with a column, or NULL if there is no sequence
!    associated with the column.  The result is suitably formatted for passing
!    to the sequence functions (see <xref linkend="functions-sequence">).
!    This association can be modified or removed with <command>ALTER SEQUENCE
!    OWNED BY</>.  (The function probably should have been called
     <function>pg_get_owned_sequence</function>; its name reflects the fact
     that it's typically used with <type>serial</> or <type>bigserial</>
     columns.)
--- 9892,9909 ----
    </para>
  
    <para>
!    <function>pg_get_serial_sequence</function> returns the name of the
!    sequence associated with a column, or NULL if no sequence is associated
!    with the column.  The first input parameter is a table name with
!    optional schema, and the second parameter is a column name.  Because
!    the first parameter is potentially a schema and table, it is not treated
!    as a double-quoted identifier, meaning it is lowercased by default,
!    while the second parameter, being just a column name, is treated as
!    double-quoted and has its case preserved.  The function returns a value
!    suitably formatted for passing to the sequence functions (see <xref
!    linkend="functions-sequence">).  This association can be modified or
!    removed with <command>ALTER SEQUENCE OWNED BY</>.  (The function
!    probably should have been called
     <function>pg_get_owned_sequence</function>; its name reflects the fact
     that it's typically used with <type>serial</> or <type>bigserial</>
     columns.)
Index: src/backend/utils/adt/ruleutils.c
===================================================================
RCS file: /cvsroot/pgsql/src/backend/utils/adt/ruleutils.c,v
retrieving revision 1.246
diff -c -c -r1.246 ruleutils.c
*** src/backend/utils/adt/ruleutils.c	25 Jan 2007 04:17:46 -0000	1.246
--- src/backend/utils/adt/ruleutils.c	30 Jan 2007 02:16:19 -0000
***************
*** 1265,1270 ****
--- 1265,1272 ----
   * pg_get_serial_sequence
   *		Get the name of the sequence used by a serial column,
   *		formatted suitably for passing to setval, nextval or currval.
+  *		First parameter is not treated as double-quoted, second parameter
+  *		is --- see documentation for reason.
   */
  Datum
  pg_get_serial_sequence(PG_FUNCTION_ARGS)
