<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Forum PostgreSQL - DROP FUNCTION IF EXISTS w postgresql 8.1]]></title>
	<link rel="self" href="http://forum.postgresql.org.pl/extern.php?action=feed&amp;tid=1369&amp;type=atom"/>
	<updated>2012-08-01T12:18:04Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.postgresql.org.pl/viewtopic.php?id=1369</id>
		<entry>
			<title type="html"><![CDATA[Odp: DROP FUNCTION IF EXISTS w postgresql 8.1]]></title>
			<link rel="alternate" href="https://forum.postgresql.org.pl/viewtopic.php?pid=3679#p3679"/>
			<content type="html"><![CDATA[Ok już sam znalazłem rozwiązanie. Chyba najłatwiej będzie sprawdzić:
SELECT
  tgrelid
FROM
  pg_trigger
WHERE
 tgnam='trigger_name']]></content>
			<author>
				<name><![CDATA[kosiek]]></name>
				<uri>https://forum.postgresql.org.pl/profile.php?id=1460</uri>
			</author>
			<updated>2012-08-01T12:18:04Z</updated>
			<id>https://forum.postgresql.org.pl/viewtopic.php?pid=3679#p3679</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[DROP FUNCTION IF EXISTS w postgresql 8.1]]></title>
			<link rel="alternate" href="https://forum.postgresql.org.pl/viewtopic.php?pid=3678#p3678"/>
			<content type="html"><![CDATA[Witam.
Mam taki problem. Jak sprawdzić czy funkcja albo trigger istnieje i jeżeli tak to go usunąć.
Od wersji Postgres'a 8.2 można użyć DROP FUNCTION IF EXISTS, a jak to zrobić w wersjach 
wcześniejszych Postgres'a.

Pozdrawiam.]]></content>
			<author>
				<name><![CDATA[kosiek]]></name>
				<uri>https://forum.postgresql.org.pl/profile.php?id=1460</uri>
			</author>
			<updated>2012-08-01T12:02:13Z</updated>
			<id>https://forum.postgresql.org.pl/viewtopic.php?pid=3678#p3678</id>
		</entry>
</feed>
