Unix Technical Forum

multibyte regression tests

This is a discussion on multibyte regression tests within the pgsql Hackers forums, part of the PostgreSQL category; --> Should we add the multibyte regression tests to the buildfarm test suite? Does anyone know how portable they are? ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Hackers

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-11-2008, 04:50 AM
Andrew Dunstan
 
Posts: n/a
Default multibyte regression tests


Should we add the multibyte regression tests to the buildfarm test
suite? Does anyone know how portable they are? I guess adding them would
be one way to find out.

cheers

andrew

---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
choose an index scan if your joining column's datatypes do not
match

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-11-2008, 04:53 AM
Luke Lonergan
 
Posts: n/a
Default Re: multibyte regression tests

They should be completely portable (provided the script in src/test/mb runs
on that platform).

- Luke


On 7/12/05 10:54 AM, "Andrew Dunstan" <andrew@dunslane.net> wrote:

>
> Should we add the multibyte regression tests to the buildfarm test
> suite? Does anyone know how portable they are? I guess adding them would
> be one way to find out.
>
> cheers
>
> andrew
>
> ---------------------------(end of broadcast)---------------------------
> TIP 9: In versions below 8.0, the planner will ignore your desire to
> choose an index scan if your joining column's datatypes do not
> match
>




---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-11-2008, 04:53 AM
Andrew Dunstan
 
Posts: n/a
Default Re: multibyte regression tests


Good. So should we roll this up into the standard regression suite? Why
are these tests separate? Is it just that they need a UTF8 encoded db
rather than an SQL-ASCII encoded db?

cheers

andrew

Luke Lonergan wrote:

>They should be completely portable (provided the script in src/test/mb runs
>on that platform).
>
>- Luke
>
>
>On 7/12/05 10:54 AM, "Andrew Dunstan" <andrew@dunslane.net> wrote:
>
>
>
>>Should we add the multibyte regression tests to the buildfarm test
>>suite? Does anyone know how portable they are? I guess adding them would
>>be one way to find out.
>>
>>
>>


---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-11-2008, 04:53 AM
Luke Lonergan
 
Posts: n/a
Default Re: multibyte regression tests


Andrew,

> Good. So should we roll this up into the standard regression suite? Why
> are these tests separate? Is it just that they need a UTF8 encoded db
> rather than an SQL-ASCII encoded db?


I think that was the idea - the src/test/mb kit was already there and was
designed to create the UTF8 database and controlled circumstances for a
conversion test, so we used it for the similar testing for COPY.

It could possibly be moved into the "make check" regression suite, if the
regression DB is always created with UTF8.

Ayush may be able to add to this.

- Luke



---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 04-11-2008, 04:53 AM
Andrew Dunstan
 
Posts: n/a
Default Re: multibyte regression tests



Luke Lonergan wrote:

>Andrew,
>
>
>
>>Good. So should we roll this up into the standard regression suite? Why
>>are these tests separate? Is it just that they need a UTF8 encoded db
>>rather than an SQL-ASCII encoded db?
>>
>>

>
>I think that was the idea - the src/test/mb kit was already there and was
>designed to create the UTF8 database and controlled circumstances for a
>conversion test, so we used it for the similar testing for COPY.
>
>It could possibly be moved into the "make check" regression suite, if the
>regression DB is always created with UTF8.
>
>Ayush may be able to add to this.
>
>
>
>


It isn't. But we now have support in pg_regress for specifying the
database explicitly, and we have just adapted the PL regression sets to
use the standard infrastructure that the core and contrib regression
sets use. Moreover, pg_regress.sh already has some support for multibyte
encodings. So I think rolling up the mb tests at least to use a
(possibly enhanced) pg_regress.sh would be a GoodThing (tm). Having a
single and adequately featured regression harness should make adding
specialised test sets easier - I imagine that would appeal to you guys
at GreenPlum :-)

cheers

andrew

---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faq

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 04-11-2008, 04:53 AM
Ayush Parashar
 
Posts: n/a
Default Re: multibyte regression tests

Andrew, Luke,

As pointed by Luke, the reason for using mb regression suite (src/test/mb),
is to consolidate all similar kinds of multi-byte/client encoding tests at
one place.

Thanks,
Ayush

On 7/15/05 1:36 PM, "Luke Lonergan" <llonergan@greenplum.com> wrote:

>
> Andrew,
>
>> Good. So should we roll this up into the standard regression suite? Why
>> are these tests separate? Is it just that they need a UTF8 encoded db
>> rather than an SQL-ASCII encoded db?

>
> I think that was the idea - the src/test/mb kit was already there and was
> designed to create the UTF8 database and controlled circumstances for a
> conversion test, so we used it for the similar testing for COPY.
>
> It could possibly be moved into the "make check" regression suite, if the
> regression DB is always created with UTF8.
>
> Ayush may be able to add to this.
>
> - Luke
>




---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faq

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 04-11-2008, 04:53 AM
Andrew Dunstan
 
Posts: n/a
Default Re: multibyte regression tests


I am totally confused by your response and Luke's. I think we might be
talking completely at cross purposes. My original question had nothing
to do with the COPY patch.

cheers

andrew

Ayush Parashar wrote:

>Andrew, Luke,
>
>As pointed by Luke, the reason for using mb regression suite (src/test/mb),
>is to consolidate all similar kinds of multi-byte/client encoding tests at
>one place.
>
>Thanks,
>Ayush
>
>On 7/15/05 1:36 PM, "Luke Lonergan" <llonergan@greenplum.com> wrote:
>
>
>
>>Andrew,
>>
>>
>>
>>>Good. So should we roll this up into the standard regression suite? Why
>>>are these tests separate? Is it just that they need a UTF8 encoded db
>>>rather than an SQL-ASCII encoded db?
>>>
>>>

>>I think that was the idea - the src/test/mb kit was already there and was
>>designed to create the UTF8 database and controlled circumstances for a
>>conversion test, so we used it for the similar testing for COPY.
>>
>>It could possibly be moved into the "make check" regression suite, if the
>>regression DB is always created with UTF8.
>>
>>Ayush may be able to add to this.
>>
>>- Luke
>>
>>
>>

>
>
>
>---------------------------(end of broadcast)---------------------------
>TIP 3: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/docs/faq
>
>
>


---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 04-11-2008, 05:04 AM
Bruce Momjian
 
Posts: n/a
Default Re: multibyte regression tests


This has been saved for the 8.2 release:

http://momjian.postgresql.org/cgi-bin/pgpatches_hold

---------------------------------------------------------------------------

Andrew Dunstan wrote:
>
>
> Luke Lonergan wrote:
>
> >Andrew,
> >
> >
> >
> >>Good. So should we roll this up into the standard regression suite? Why
> >>are these tests separate? Is it just that they need a UTF8 encoded db
> >>rather than an SQL-ASCII encoded db?
> >>
> >>

> >
> >I think that was the idea - the src/test/mb kit was already there and was
> >designed to create the UTF8 database and controlled circumstances for a
> >conversion test, so we used it for the similar testing for COPY.
> >
> >It could possibly be moved into the "make check" regression suite, if the
> >regression DB is always created with UTF8.
> >
> >Ayush may be able to add to this.
> >
> >
> >
> >

>
> It isn't. But we now have support in pg_regress for specifying the
> database explicitly, and we have just adapted the PL regression sets to
> use the standard infrastructure that the core and contrib regression
> sets use. Moreover, pg_regress.sh already has some support for multibyte
> encodings. So I think rolling up the mb tests at least to use a
> (possibly enhanced) pg_regress.sh would be a GoodThing (tm). Having a
> single and adequately featured regression harness should make adding
> specialised test sets easier - I imagine that would appeal to you guys
> at GreenPlum :-)
>
> cheers
>
> andrew
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/docs/faq
>


--
Bruce Momjian | http://candle.pha.pa.us
pgman@candle.pha.pa.us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 05:29 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com