Re: Why is cast array integer[] <--> text[] is not immutable.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Phil Couling <couling(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Why is cast array integer[] <--> text[] is not immutable.
Date: 2011-12-09 15:09:58
Message-ID: 27130.1323443398@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Phil Couling <couling(at)gmail(dot)com> writes:
> I'm struggling to understand why this casts is not immutable:

> integer[]::text[]
> text[]::integer[]

Because it's implemented via array_out/array_in rather than any more
direct method, and those are marked stable because they potentially
invoke non-immutable element I/O functions.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Frank Lanitz 2011-12-09 15:10:46 Re: How to configure the connection timeout in PostgreSQL 8.3
Previous Message Andre Lopes 2011-12-09 15:02:45 How to configure the connection timeout in PostgreSQL 8.3