Skip site navigation (1) Skip section navigation (2)

BUG #4421: convert_to() should be immutable

From: "" <andipeer(at)gmx(dot)net>
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #4421: convert_to() should be immutable
Date: 2008-09-17 14:52:12
Message-ID: 200809171452.m8HEqC6O083632@wwwmaster.postgresql.org (view raw or flat)
Thread:
Lists: pgsql-bugs
The following bug has been logged online:

Bug reference:      4421
Logged by:          
Email address:      andipeer(at)gmx(dot)net
PostgreSQL version: 8.3.3
Operating system:   Linux
Description:        convert_to() should be immutable
Details: 

The function convert_to(string text, dest_encoding name) is not allowed to
be used in a index expression, because it is not marked as "IMMUTABLE".
According to the documentation, a function is immutable if it does not
modify the database, and for the same arguments, it returns always the same
results. I think that all of these conditions can be applied to the
convert_to()-function, therefore it should be marked as "IMMUTABLE".

Responses

pgsql-bugs by date

Next:From: vasileDate: 2008-09-17 14:53:51
Subject: BUG #4422: select ... where ... NOT EXISTS / NOT IN
Previous:From: LegistrateDate: 2008-09-17 03:28:19
Subject: BUG #4420: Problem Finding unique text entries

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group