pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: George Weaver <georgew1@mts.net>
To: Kumar <sgnerd@yahoo.com.sg>
To: psql <pgsql-sql@postgresql.org>
Subject: Re: Possible to have array as input paramter for a function?
Date: Wed, 8 Oct 2003 09:06:47 -0500
Message-ID: <003101c38da5$80abd150$270ea18e@cleartag> (raw)
References: <016801c38d89$9fed7080$7502a8c0@hdsc.com>

Hi Kumar,

Looks like I got up too early this morning - please ignore my previous reply re: varchar(30) (I was looking at the wrong function :-(  ). 

I do use arrays in Pl/pgSQL functions, and have defined them as you did, e.g. varchar[], which does not return an error.  What version of PostgreSQL are you using?  I am running 7.3.2.

Regards,
George
  ----- Original Message ----- 
  From: Kumar 
  To: psql 
  Sent: Wednesday, October 08, 2003 5:47 AM
  Subject: [SQL] Possible to have array as input paramter for a function?


  Dear Friends,

  I am working with Postgres 7.3.4 on RH Linux 7.2 and my windows client is PgAdmin 3.

  Is it possible to pass a Varchar[] as a input parameter for a PL/pgSQL function. While I tried it give a error 
      Type "varchar[]" does not exists.

  Does this is supported in Postgres?

  Anyone have a link or while paper on handling arrays in functions?

  Please enlighten me on this.

  Regards
  Kumar

view thread (3+ messages)

Message-ID: <003101c38da5$80abd150$270ea18e@cleartag>
Permalink:  ../003101c38da5$80abd150$270ea18e@cleartag/
Also on:    postgresql.org/message-id/003101c38da5$80abd150$270ea18e@cleartag

 · 

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: pgsql-sql@postgresql.org
  Cc: georgew1@mts.net, sgnerd@yahoo.com.sg
  Subject: Re: Possible to have array as input paramter for a function?
  In-Reply-To: <003101c38da5$80abd150$270ea18e@cleartag>

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

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