Re: [GENERAL] Casting Point to Text

2003-12-10 Thread Martin Hart
On Tuesday 09 December 2003 14:56, Tom Lane wrote: > plpgsql is effectively doing > > regression=# select textin(point_out('(1,2)'::point)); > textin > > (1,2) > (1 row) > > There is not a one-step cast function for this. (Not for any > fundamental reason, just a lack of round tuits.) >

[GENERAL] Casting Point to Text

2003-12-09 Thread Martin Hart
Hi all, PG 7.4 beta4 (not had a chance to upgrade yet :-( how do i cast something of type point to text? db=# select '(1,2)'::point::text; ERROR: cannot cast type point to text db=# select text('(1,2)'::point); ERROR: function text(point) does not exist HINT: No function matches the given na

[GENERAL] strategies for optimising common lookups etc

2003-08-14 Thread Martin Hart
called often it seems a bit of a waste of resources looking it up each time the procedure is run. Is this the sort of thing that internal variables would handle (by that I mean using "set" and "show")? TIA Martin -- Martin Hart Arnclan Limited 53 Union Stree