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

Built-in casts for ltree

From: "Jim C(dot) Nasby" <decibel(at)decibel(dot)org>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Built-in casts for ltree
Date: 2005-01-25 05:03:03
Message-ID: (view raw or whole thread)
Lists: pgsql-hackers
contrib/ltree includes text2ltree and ltree2text functions, but no
implicit casts. Is there any particular reason for this?

---   Mon Jan 24 22:47:01 2005
+++        Mon Jan 24 22:58:40 2005
@@ -155,10 +155,14 @@
 LANGUAGE 'C' WITH (isstrict,iscachable);
+CREATE CAST (ltree AS text) WITH FUNCTION ltree2text(ltree) AS IMPLICIT;
 CREATE FUNCTION text2ltree(text)
 RETURNS ltree
 LANGUAGE 'C' WITH (isstrict,iscachable);
+CREATE CAST (text AS ltree) WITH FUNCTION text2ltree(text) AS IMPLICIT;
 CREATE FUNCTION lca(_ltree)
 RETURNS ltree
Jim C. Nasby, Database Consultant               decibel(at)decibel(dot)org 
Give your computer some brain candy! Team #1828

Windows: "Where do you want to go today?"
Linux: "Where do you want to go tomorrow?"
FreeBSD: "Are you guys coming, or what?"


pgsql-hackers by date

Next:From: Manfred KoizarDate: 2005-01-25 07:33:57
Subject: Re: Much Ado About COUNT(*)
Previous:From: Min Xu (Hsu)Date: 2005-01-25 04:43:29
Subject: Re: Concurrent free-lock

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