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

Re: Implicit casts to text

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Implicit casts to text
Date: 2007-04-03 16:10:08
Message-ID: 200704031810.09077.peter_e@gmx.net (view raw or flat)
Thread:
Lists: pgsql-hackers
Am Montag, 2. April 2007 18:41 schrieb Tom Lane:
> >> The scheme that was in the back of my mind was to do this at the same
> >> time as providing a general facility for casting *every* type to and
> >> from text, by means of their I/O functions if no specialized cast is
> >> provided in pg_cast.

> http://archives.postgresql.org/pgsql-admin/2004-06/msg00390.php
> http://archives.postgresql.org/pgsql-hackers/2004-10/msg00303.php

FWIW, is the attached patch about what you had in mind?  (It probably only 
covers "normal" types at the moment.)

-- 
Peter Eisentraut
http://developer.postgresql.org/~petere/

Attachment: automatic-text-cast.patch
Description: text/x-diff (1.6 KB)

In response to

Responses

pgsql-hackers by date

Next:From: Jeff DavisDate: 2007-04-03 16:32:57
Subject: Re: Synchronized Scan benchmark results
Previous:From: Peter EisentrautDate: 2007-04-03 15:54:29
Subject: Re: Implicit casts to text

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