Valeu Obrigado Leonardo Em 10 de fevereiro de 2011 20:46, Leonardo Cezar <[email protected]>escreveu:
> 2011/2/10 Rodrigo Della Justina <[email protected]>: > > Olá Pessoal, > > seguinte, sei que a pouco tempo *segunda a documentação* nas versões > 8.4.xxx > > foi implementado > > o pg_get_functiondef(oid), maravilha fiz alguns testes e retorna a > > estrutura correta da minha função. > > [...] porem nas versoes 8.3.11 a qual eu tenho em producao e dificilmente > > sera migrado para versoes mais recentes 8.4 ou 9.0, ela nao e > implementada, > > como ela e uma funcao sera que teria alguma outra forma de retornar a > > estrutura da minha funcao ? utilizando a versao do PostgresSQL 8.3 ? > > SELECT routine_definition > FROM information_schema.routines > WHERE routine_name = 'sua_funcao'; > > ou altere o arquivo > > $PGSRC/src/backend/utils/adt/ruleutils.c > > e implemente: > > +pg_get_functiondef > +pg_get_function_arguments > +pg_get_function_identity_arguments > +pg_get_function_result > +print_function_rettype > +print_function_arguments > +generate_function_name > > Talvez isto te ajude: > > $ git diff REL8_3_12 REL8_4_0 ruleutils.c > > Abraço! > > -Leo > -- > Leonardo Cezar > http://postgreslogia.wordpress.com > _______________________________________________ > pgbr-geral mailing list > [email protected] > https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral > -- *Atenciosamente* * * *Rodrigo Della Justina* *[email protected]* *[email protected]* Telp: 55-46-8801-6165 *IBM DB2 Certified Database Academic* **
_______________________________________________ pgbr-geral mailing list [email protected] https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral
