public inbox for [email protected]  
help / color / mirror / Atom feed
From: Bruce Momjian <[email protected]>
To: Joe Conway <[email protected]>
Cc: Tatsuo Ishii <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: PostgreSQL-documentation <[email protected]>
Subject: Re: Annotated release notes
Date: Mon, 10 Nov 2003 17:26:18 -0500 (EST)
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>


OK, release notes updated to:

<listitem><para>Allow polymorphic PL/pgSQL functions (Tom, Joe)</para></listitem>
<listitem><para>Allow polymorphic SQL functions (Joe)</para>
   <para>
    Allow functions to accept arbitrary data types for input, and return arbitrary types.
   </para>
   </listitem>


---------------------------------------------------------------------------

Joe Conway wrote:
> Bruce Momjian wrote:
> > 	http://candle.pha.pa.us/main/writings/pgsql/sgml/release.html#RELEASE-7-4
> > 
> > I need people to check this and help me with the items marked 'bjm'.  I
> > am confused about the proper text for those sections.
> 
>  > Allow polymorphic SQL functions (Joe)
>  > bjm ??
> 
> What isn't clear about this? Should/can we refer to related sections of 
> the manual?
> http://developer.postgresql.org/docs/postgres/xfunc-sql.html#AEN28722
> http://developer.postgresql.org/docs/postgres/extend-type-system.html#EXTEND-TYPES-POLYMORPHIC
> 
>  > Allow user defined aggregates to use polymorphic functions (Joe)
>  > bjm ??
> 
> Same question. From this url:
> http://developer.postgresql.org/docs/postgres/xaggr.html
> see this paragraph:
> 
>   Aggregate functions may use polymorphic state transition functions or 
> final functions, so that the same functions can be used to implement 
> multiple aggregates. See Section 33.2.1  for an explanation of 
> polymorphic functions. Going a step further, the aggregate function 
> itself may be specified with a polymorphic base type and state type, 
> allowing a single aggregate definition to serve for multiple input data 
> types. Here is an example of a polymorphic aggregate:
> 
> CREATE AGGREGATE array_accum (
>      sfunc = array_append,
>      basetype = anyelement,
>      stype = anyarray,
>      initcond = '{}'
> );
> 
> Joe
> 
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 9: the planner will ignore your desire to choose an index scan if your
>       joining column's datatypes do not match
> 

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  [email protected]               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073



view thread (62+ messages)  latest in thread

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected]
  Subject: Re: Annotated release notes
  In-Reply-To: <[email protected]>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox