Re: [GENERAL] [SQL] check data for datatype

2015-04-07 Thread Gerardo Herzig
I guess that could need something like (untested) delete from bigtable text_column !~ '^[0-9][0-9]*$'; HTH Gerardo - Mensaje original - De: Suresh Raja suresh.raja...@gmail.com Para: pgsql-general@postgresql.org, pgsql-...@postgresql.org Enviados: Viernes, 27 de Marzo 2015 15:08:43

[GENERAL] how to see where SQL is better than PLPGSQL

2014-09-28 Thread Gerardo Herzig
Hi all. I see an entire database, with all the stored procedures writen in plpgsql. Off course, many (if not all) of that SP are simple inserts, updates, selects and so on. So, i want to test and show the differences between doing the same function in pgpgsql vs. plain sql. Im getting

Re: [GENERAL] [SQL] how to see where SQL is better than PLPGSQL

2014-09-28 Thread Gerardo Herzig
Hi all. I see an entire database, with all the stored procedures writen in plpgsql. Off course, many (if not all) of that SP are simple inserts, updates, selects and so on. So, i want to test and show the differences between doing the same function in pgpgsql vs. plain sql. Im getting