[SQL] Help converting Oracle instead of triggers to PostgreSQL

2003-12-03 Thread Clint Stotesbery
I have some instead of triggers in Oracle, some update instead of triggers and some insert instead of triggers. I was thinking that I could maybe use instead of rules in PostgreSQL to get the same effect. I converted the instead of trigger in Oracle into a PostgreSQL function below: CREATE OR RE

Re: [SQL] Datatype Inet and Searching

2003-12-03 Thread Gaetano Mendola
Devin Atencio wrote: Dear Users, I am very new to using the inet data type and I have a database with a list of CIDRs in it And I was hoping to be able to do some kind of select statement that would pull the record That the IP given is located in for example. If in my database I have a

Re: [SQL] Create Trigger porting problem from Oracle to PostgreSQL7.3.2

2003-12-03 Thread Clint Stotesbery
Hi, I ran into the same thing last week. There is no way to specify that functionality in the trigger creation for Postgresql. You will have to code the trigger to detect when the specific field is updated. Tom Lane had suggested something for me last week. Check out the archive for the mailing

[SQL] Create Trigger porting problem from Oracle to PostgreSQL7.3.2

2003-12-03 Thread Doris Bernloehr
Hello I've got a problem in porting a trigger from Oracle into PostgreSQL. In Oracle you can choose between UPDATE and UPDATE OF COLUMN ... Is there a way to have the same functionality in PostgreSQL? Hope anyone can give me an advice. Doris ---(end of broadcast)---

[SQL] What's wrong with COPY rights in 7.3.4?

2003-12-03 Thread Olivier Hubaut
Hi, I tried to use the COPY function in v7.3.4 but I have a problem. According to the documentation, anyboy having the good rights on the table he want to copy could do it without any problem. When I tried it, I found that using this command is impossible if you aren't an administrator for the