Re: [COMMITTERS] pgsql: /contrib/cube improvements: Update - Mailing list pgsql-hackers

From Joshua Reich
Subject Re: [COMMITTERS] pgsql: /contrib/cube improvements: Update
Date
Msg-id 44C8C1FB.5050903@root.net
Whole thread Raw
In response to Re: [COMMITTERS] pgsql: /contrib/cube improvements: Update  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: [COMMITTERS] pgsql: /contrib/cube improvements: Update  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
I'm not sure exactly what to do here. I tried simply doing

CREATE TYPE cube;

But I still get NOTICE's to the effect of "return type cube is only a 
shell" or "argument type cube is only a shell".

I'm not sure how to do this to get zero NOTICES.

Advice appreciated.

Josh Reich

Tom Lane wrote:
> Joshua Reich <josh@root.net> writes:
>>> The problem is that there are new functions in cube.sql, so the output 
>>> is now different and breaks the diff (to state the obvious).
> 
> Actually, the new theory on this is that you should explicitly create
> a shell type first:
> 
>     CREATE TYPE cube;
> 
> and then create the functions, and then make the type "for real".
> 
> This will still involve a change in the earthdistance expected
> output (down to zero expected NOTICEs) but if we're gonna fix it
> then let's fix it right.
> 
>             regards, tom lane
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 6: explain analyze is your friend

-- 
Joshua Reich
Finance and Corporate Development
ROOT Exchange, A Division of ROOT Markets
601 W. 26th St. / Suite 1500
New York, NY 10001
W - (212) 645 6320 x 7101
M / T - (646) 427 7959
E - josh@rootexchange.com


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [PATCHES] extension for sql update
Next
From: Tom Lane
Date:
Subject: Re: [COMMITTERS] pgsql: /contrib/cube improvements: Update