Gracias Álvaro. Como dices empezaré por "logguear" estas funciones y los analizaré para ver dónde hay que meter mano.
Un saludo. On Thu, 8 Aug 2019 at 18:18, Alvaro Herrera <alvhe...@2ndquadrant.com> wrote: > Ruben Fitó escribió: > > > - Por otro lado, tal y como hemos creado los "implicit cast", según el > > script: > > > > CREATE FUNCTION pg_catalog.text(integer) RETURNS text STRICT IMMUTABLE > > LANGUAGE SQL AS 'SELECT textin(int4out($1));'; > > CREATE CAST (integer AS text) WITH FUNCTION pg_catalog.text(integer) AS > > IMPLICIT; > > > > - Dicho de otro modo, se crea primero la función y después el cast. > > Sabéis si puedo monitorizar estas funciones para que me creen un log > y me > > indique en qué "SQL" o "lo que sea" se está utilizando? > > Claro, puedes modificar la función pg_catalog.text(integer) para que > mande algo al log: lo más simple es que use lenguaje plpgsql y así > puedes simplemente agregar un RAISE WARNING/NOTICE o algo parecido. Hay > otras opciones ... > > -- > Álvaro Herrera https://www.2ndQuadrant.com/ > PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services > -- *Ruben Fitó * Software Engineer [image: Ubiquat Technologies, SL] r.f...@ubiquat.com <j.catari...@ubiquat.com> www.ubiquat.com Tota la informació continguda en aquest document i arxius adjunts és CONFIDENCIAL protegida per llei de secret comercial. Si l'ha rebut per error, si us plau elimini'l i posi's en contacte amb l'emissor. All information contained in this document and any attachments are CONFIDENTIAL and protected under trade secret laws. If you receive this message by mistake, please delete it and notify it immediately to the sender.