Received: from localhost (unknown [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id B64902E34C6 for ; Thu, 29 Nov 2007 13:57:31 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-maia, port 10024) with ESMTP id 00800-06 for ; Thu, 29 Nov 2007 13:57:28 -0400 (AST) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.251]) by postgresql.org (Postfix) with ESMTP id C198E2E342B for ; Thu, 29 Nov 2007 13:57:23 -0400 (AST) Received: by an-out-0708.google.com with SMTP id c36so402629ana for ; Thu, 29 Nov 2007 09:57:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; bh=GJXGzmF1lTzQN5oQpgiL/MZFrTS33aPYrvN47GuVnIk=; b=Qbv/XPJ08OXaGyLWxSyYsaaQHxYHnDJ5o6sX0UjUNLytF2yh89Yr1J47XOW9VKT5mhDkuyEfhSMRbueNAYRL8wNb27THjAxJdkdQv1vcUF9tTEUm0BC+9DiDJbkEryAXyP7JHyKl3HLkxtYDHSWfg3kMOjfT6bv2fmagU4WdZys= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=D5QhRG1Igol+nDNhDXlciiyAgGHeWgHCsZf1OOvFSifWqTOEQGH0W0vUne3kgTq0QayYUP+/wFrrItCqmR2NbxbqRkqCB5HfzACFohaeMizEjghkqWIPnMzYZPdlAtJbabsW+BfmEiNmpJtQbHjoIyv06bzXH/8Aceq+e9SMobU= Received: by 10.100.229.10 with SMTP id b10mr12120171anh.1196359041647; Thu, 29 Nov 2007 09:57:21 -0800 (PST) Received: by 10.90.120.17 with HTTP; Thu, 29 Nov 2007 09:57:21 -0800 (PST) Message-ID: Date: Thu, 29 Nov 2007 12:57:21 -0500 From: "=?UTF-8?Q?Rodrigo_De_Le=C3=B3n?=" To: pgsql-general@postgresql.org Subject: ERROR: failed to find conversion function from unknown to integer[] MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200711/1610 X-Sequence-Number: 124605 t=# select version(); version -------------------------------------------------------- PostgreSQL 8.3beta3, compiled by Visual C++ build 1400 (1 row) t=# -- foo is of type unknown t=# select '{1,2,3}' as foo; foo --------- {1,2,3} (1 row) t=# -- OK. foo is of type int[] t=# select ('{1,2,3}')::int[] as foo; foo --------- {1,2,3} (1 row) t=# -- OK. foo is of type unknown t=# select (('{1,2,3}'::text)::unknown) as foo; foo --------- {1,2,3} (1 row) t=# -- Barfs. Why? t=# select (('{1,2,3}'::text)::unknown)::int[] as foo; ERROR: failed to find conversion function from unknown to integer[] Thanks for your time.