Re: BUG #4533: Plpgsql complex type failure - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #4533: Plpgsql complex type failure
Date
Msg-id 29335.1227379061@sss.pgh.pa.us
Whole thread Raw
In response to BUG #4533: Plpgsql complex type failure  ("Rod Taylor" <rod.taylor@gmail.com>)
Responses Re: BUG #4533: Plpgsql complex type failure
List pgsql-bugs
"Rod Taylor" <rod.taylor@gmail.com> writes:
> DECLARE
>   v_time timestamp_with_precision;
> BEGIN
>   SELECT (CURRENT_DATE, 'day')::timestamp_with_precision
>     INTO v_time;

You're overthinking the problem, it should just read

  SELECT CURRENT_DATE, 'day'
    INTO v_time;

            regards, tom lane

pgsql-bugs by date:

Previous
From: "Rod Taylor"
Date:
Subject: BUG #4533: Plpgsql complex type failure
Next
From: Tom Lane
Date:
Subject: Re: BUG #4533: Plpgsql complex type failure