Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Patches > Re: tem****al v...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 3649 of 3916
Post > Topic >>

Re: tem****al version of generate_series()

by umi.tanuki@[EMAIL PROTECTED] ("H.Harada") May 1, 2008 at 04:36 PM

2008/5/1 Pavel Stehule <pavel.stehule@[EMAIL PROTECTED]
>:
> Hello
>
>  why you don't use polymorphic types?
Ah, good idea. I didn't think we could fix the third argument to
"interval" but "anyelement".
For a tem****al version, it's reasonable.

Also, the name "generate_time_series" is better than before?

Hito**** Harada


2008/5/1 Pavel Stehule <pavel.stehule@[EMAIL PROTECTED]
>:
> Hello
>
>  why you don't use polymorphic types?
>
>  like:
>
>  create or replace function generate_time_series(anyelement,
>  anyelement, interval, OUT result anyelement)
>  returns setof anyelement as $$
>  begin
>   result :=3D $1;
>   while (result <=3D $2) loop
>     return next;
>     result :=3D result + $3;
>   end loop;
>   return;
>  end;
>  $$ language plpgsql;
>
>  Regards
>  Pavel Stehule
>
>
>
>  2008/5/1 H. Harada <umi.tanuki@[EMAIL PROTECTED]
>:
>
>
> > Here's the sync and updated patch.
>  > It contains "strict" in catalog as well.
>  >
>  > Hito**** Harada
>  >
>  > 2008/4/24 H. Harada <umi.tanuki@[EMAIL PROTECTED]
>:
>  >> 2008/4/23 Alvaro Herrera <alvherre@[EMAIL PROTECTED]
>:
>  >>
>  >> > H.Harada escribi=F3:
>  >>  >
>  >>  >
>  >>  >  > # This is my first time to send a patch. If I did something
wro=
ng, I
>  >>  >  > appreciate your pointing me out.
>  >>  >
>  >>  >  Brace positioning is off w.r.t. our conventions -- please fix
tha=
t and
>  >>  >  resubmit.
>  >>
>  >>  Here's updated version. Thanks for your advice.
>  >>
>  >>  Hito**** Harada
>  >>
>  >>  2008/4/23 Alvaro Herrera <alvherre@[EMAIL PROTECTED]
>:
>  >>
>  >>
>  >> > H.Harada escribi=F3:
>  >>  >
>  >>  >
>  >>  >  > # This is my first time to send a patch. If I did something
wro=
ng, I
>  >>  >  > appreciate your pointing me out.
>  >>  >
>  >>  >  Brace positioning is off w.r.t. our conventions -- please fix
tha=
t and
>  >>  >  resubmit.
>  >>  >
>  >>  >  I have added this patch to the May commitfest.
>  >>  >
>  >>  >  --
>  >>  >  Alvaro Herrera                               
http://www.CommandP=
rompt.com/
>  >>  >  The PostgreSQL Company - Command Prompt, Inc.
>  >>  >
>  >>
>  >
>  >
>  > --
>  > Sent via pgsql-patches mailing list (pgsql-patches@[EMAIL PROTECTED]
)
>  > To make changes to your subscription:
>  > http://www.postgresql.org/mailpref/pgsql-patches
>  >
>  >
>

--=20
Sent via pgsql-patches mailing list (pgsql-patches@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-patches
 




 1 Posts in Topic:
Re: tem****al version of generate_series()
umi.tanuki@[EMAIL PROTECT  2008-05-01 16:36:15 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan13V112 Thu Jul 24 5:13:57 CDT 2008.