From: | "Jaime Casanova" <systemguards(at)gmail(dot)com> |
---|---|
To: | "LIZETH ANGHELA SIRPA CACERES" <angheliz(at)gmail(dot)com> |
Cc: | pgsql-es-ayuda(at)postgresql(dot)org |
Subject: | Re: CONSULTAS SP |
Date: | 2007-11-19 03:36:30 |
Message-ID: | c2d9e70e0711181936s5b1125d7je55d99edbb1ead7b@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-es-ayuda |
On Nov 18, 2007 8:07 PM, LIZETH ANGHELA SIRPA CACERES
<angheliz(at)gmail(dot)com> wrote:
>
>
> 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
>
no le permitas a nadie crear funciones en pg_catalog y lista todas las
funciones menos las que esten en ese esquema
--
Atentamente,
Jaime Casanova
"Programming today is a race between software engineers striving to
build bigger and better idiot-proof programs and the universe trying
to produce bigger and better idiots.
So far, the universe is winning."
Richard Cook
From | Date | Subject | |
---|---|---|---|
Next Message | Ernesto Lozano | 2007-11-19 04:21:59 | Re: CONSULTAS SP |
Previous Message | LIZETH ANGHELA SIRPA CACERES | 2007-11-19 01:07:47 | CONSULTAS SP |