Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What to use as a NOOP in PostgreSQL?

I have need of a placeholder while I develop some stored procedures in PostgreSQL 8.4. I'd typically use some sort of executable noop (one that's not going to generate an error when an attempt is made to execute it), but based upon a cursory examination, there doesn't appear to be such a function in PostgreSQL. What alternatives exist?

like image 479
andand Avatar asked Sep 25 '12 16:09

andand


1 Answers

Try

NULL;

Postgresql 8.4 manual - Noop section

like image 86
Gary Avatar answered Sep 18 '22 05:09

Gary