From: | "LIZETH ANGHELA SIRPA CACERES" <angheliz(at)gmail(dot)com> |
---|---|
To: | pgsql-es-ayuda(at)postgresql(dot)org |
Subject: | CONSULTAS SP |
Date: | 2007-11-19 01:07:47 |
Message-ID: | f8ef7d570711181707s577ffb9eif14fd6709a680443@mail.gmail.com |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-es-ayuda |
Una consulta cuando ejecuto la consulta
select proname, oid from pg_proc where oid>(select datlastsysoid from
pg_database where datname='nombre_tabla')
me lista todas las funciones que existe en la bd pero incluyendo las que
tienen el nombre de inicio con pg_ y plpgsql,
una solución seria:
select proname, oid from pg_proc where oid>(select datlastsysoid from
pg_database where datname='estadistica')and not (proname like ('pg_%')) and
not(proname like ('plpgsql_%')) order by proname;
Pero puede ser que se creen funciones con pg_ y plpgsql_
Entonces ya no listaria estas funciones
Existe otra forma de listar solo funciones que no sean propias de postgres
--
LIZETH ANGHELA SIRPA CACERES
From | Date | Subject | |
---|---|---|---|
Next Message | Jaime Casanova | 2007-11-19 03:36:30 | Re: CONSULTAS SP |
Previous Message | Andrés García G. | 2007-11-18 23:53:47 | SUGERENCIAS PARA EFECTUAR RESPALDO DE UNA BASE DESDE LA APLICACION (DELPHI 7.0) |