pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Re: Delete function without knowing the elements
2+ messages / 2 participants
[nested] [flat]

* Delete function without knowing the elements
@ 2002-08-13 17:29 Peter Atkins <peter.atkins@NXCD.com>
  2002-08-13 17:29 ` Re: Delete function without knowing the elements Marie G. Tuite <marie.tuite@edisonaffiliates.com>
  0 siblings, 1 reply; 2+ messages in thread

From: Peter Atkins @ 2002-08-13 17:29 UTC (permalink / raw)
  To: pgsql-sql

All,

I created a function that I can't seem to delete.

[no sure how many parameters]

CREATE OR REPLACE FUNCTION insertEntry (int4, varchar, varchar, numeric,
varchar, timestamp, varchar, int4, numeric, varchar, int4, ....,....)
	RETURNS INT4 AS '
		.................................................
	END;
' LANGUAGE 'plpgsql';

How can I delete this without knowing how many I used to create it? This is
what I used to delete others in the past.

DROP FUNCTION insertEntry(int4, varchar, varchar, ...);

Thanks,
-pete




^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: Delete function without knowing the elements
  2002-08-13 17:29 Delete function without knowing the elements Peter Atkins <peter.atkins@NXCD.com>
@ 2002-08-13 17:29 ` Marie G. Tuite <marie.tuite@edisonaffiliates.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Marie G. Tuite @ 2002-08-13 17:29 UTC (permalink / raw)
  To: Peter Atkins <peter.atkins@NXCD.com>; pgsql-sql

Use \df function_name to get the argument list and then drop it.

> -----Original Message-----
> From: pgsql-sql-owner@postgresql.org
> [mailto:pgsql-sql-owner@postgresql.org]On Behalf Of Peter Atkins
> Sent: Tuesday, August 13, 2002 12:30 PM
> To: pgsql-sql@postgresql.org
> Subject: [SQL] Delete function without knowing the elements
> 
> 
> All,
> 
> I created a function that I can't seem to delete.
> 
> [no sure how many parameters]
> 
> CREATE OR REPLACE FUNCTION insertEntry (int4, varchar, varchar, numeric,
> varchar, timestamp, varchar, int4, numeric, varchar, int4, ....,....)
> 	RETURNS INT4 AS '
> 		.................................................
> 	END;
> ' LANGUAGE 'plpgsql';
> 
> How can I delete this without knowing how many I used to create 
> it? This is
> what I used to delete others in the past.
> 
> DROP FUNCTION insertEntry(int4, varchar, varchar, ...);
> 
> Thanks,
> -pete
> 
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
>     (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)
> 




^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2002-08-13 17:29 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2002-08-13 17:29 Delete function without knowing the elements Peter Atkins <peter.atkins@NXCD.com>
2002-08-13 17:29 ` Marie G. Tuite <marie.tuite@edisonaffiliates.com>

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