From: | Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> |
---|---|
To: | Vincenzo Romano <vincenzo(dot)romano(at)notorand(dot)it> |
Cc: | PostgreSQL General <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Varidic function (printf) not found within a trigger |
Date: | 2010-01-20 13:49:41 |
Message-ID: | 162867791001200549m3b4205cm5d0939029f5ca6bb@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
2010/1/20 Vincenzo Romano <vincenzo(dot)romano(at)notorand(dot)it>:
> Hi all.
>
> Within a trigger function I need to call a variadic function (actually
> the printf found on http://wiki.postgresql.org/wiki/Sprintf)
> When the trigger is fired I get the following:
>
> function printf(text, timestamp without time zone, timestamp without
> time zone, text) does not exist
> LINE 1: SELECT printf( $l1$
> ^
> HINT: No function matches the given name and argument types. You
> might need to add explicit type casts.
>
you have to do explicit cast from timestamp to text
Pavel
> Is this a bug or am I missing something important?
>
> --
> Vincenzo Romano
> NotOrAnd Information Technologies
> NON QVIETIS MARIBVS NAVTA PERITVS
>
> --
> Sent via pgsql-general mailing list (pgsql-general(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general
>
From | Date | Subject | |
---|---|---|---|
Next Message | Ivan Sergio Borgonovo | 2010-01-20 14:42:14 | more docs on extending postgres in C |
Previous Message | Vincenzo Romano | 2010-01-20 13:47:20 | Varidic function (printf) not found within a trigger |