Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 900AB475E1F for ; Fri, 25 Oct 2002 10:26:53 -0400 (EDT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id D7DC2475DFD for ; Fri, 25 Oct 2002 10:26:52 -0400 (EDT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.5/8.12.5) with ESMTP id g9PEPghR022856; Fri, 25 Oct 2002 10:25:42 -0400 (EDT) To: "Zuev Dmitry" Cc: pgsql-admin@postgresql.org Subject: Re: How can I retrieve an info about function arguments ? In-reply-to: References: Comments: In-reply-to "Zuev Dmitry" message dated "Thu, 24 Oct 2002 18:36:56 +0700" Date: Fri, 25 Oct 2002 10:25:41 -0400 Message-ID: <22855.1035555941@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200210/252 X-Sequence-Number: 6110 "Zuev Dmitry" writes: > Consider a function: > create function f(varchar(10), decimal(10,1)) returns integer as 'select 1;' There is no distinction between such a function and a function declared create function f(varchar, decimal) Function arguments do not have length restrictions attached to them. If they did, we couldn't write functions like numeric_add() and textcat(), but would need an infinite number of variations of these for each possible input length. regards, tom lane