pg.ddx.io pgsql-jdbc@postgresql.org mailing list archive
help / color / mirror / Atom feedpatch: ensure testdbencoding test table is dropped
6+ messages / 2 participants
[nested] [flat]
* patch: ensure testdbencoding test table is dropped
@ 2004-07-20 05:32 Oliver Jowett <oliver@opencloud.com>
2004-07-20 06:03 ` Re: patch: ensure testdbencoding test table is dropped Kris Jurka <books@ejurka.com>
2004-07-27 05:20 ` Re: patch: ensure testdbencoding test table is dropped Kris Jurka <books@ejurka.com>
0 siblings, 2 replies; 6+ messages in thread
From: Oliver Jowett @ 2004-07-20 05:32 UTC (permalink / raw)
To: pgsql-jdbc
Minor patch to make sure the testdbencoding test table is dropped
(otherwise it interferes with the table metadata test in subsequent runs).
-O
Attachments:
pgjdbc-drop-testdbencoding.txt (text/plain, 1.1K) download
Index: org/postgresql/test/jdbc2/DatabaseEncodingTest.java
===================================================================
RCS file: /usr/local/cvsroot/pgjdbc/pgjdbc/org/postgresql/test/jdbc2/DatabaseEncodingTest.java,v
retrieving revision 1.1
diff -u -c -r1.1 DatabaseEncodingTest.java
*** org/postgresql/test/jdbc2/DatabaseEncodingTest.java 17 Jul 2004 07:39:43 -0000 1.1
--- org/postgresql/test/jdbc2/DatabaseEncodingTest.java 20 Jul 2004 05:30:47 -0000
***************
*** 26,36 ****
--- 26,38 ----
TestUtil.createTable(con,
"testdbencoding",
"unicode_ordinal integer primary key not null, unicode_string varchar(" + STEP + ")");
+ con.setAutoCommit(false);
}
// Tear down the fixture for this test case.
protected void tearDown() throws Exception
{
+ con.setAutoCommit(true);
TestUtil.dropTable(con, "testdbencoding");
TestUtil.closeDB(con);
}
***************
*** 60,67 ****
rs.close();
- con.setAutoCommit(false); // Go faster!
-
// Create data.
// NB: we only test up to d800 as code points above that are
// reserved for surrogates in UTF-16
--- 62,67 ----
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: patch: ensure testdbencoding test table is dropped
2004-07-20 05:32 patch: ensure testdbencoding test table is dropped Oliver Jowett <oliver@opencloud.com>
@ 2004-07-20 06:03 ` Kris Jurka <books@ejurka.com>
2004-07-20 06:24 ` Re: patch: ensure testdbencoding test table is dropped Oliver Jowett <oliver@opencloud.com>
1 sibling, 1 reply; 6+ messages in thread
From: Kris Jurka @ 2004-07-20 06:03 UTC (permalink / raw)
To: Oliver Jowett <oliver@opencloud.com>; +Cc: pgsql-jdbc
On Tue, 20 Jul 2004, Oliver Jowett wrote:
> Minor patch to make sure the testdbencoding test table is dropped
> (otherwise it interferes with the table metadata test in subsequent runs).
The only comment on messing with autocommit at all is "Go faster". Other
tests avoid using transactions unless needed, what kind of speed up are we
looking at here? 1 second? 10? It might just be easier to not mess with
autocommit at all.
Kris Jurka
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: patch: ensure testdbencoding test table is dropped
2004-07-20 05:32 patch: ensure testdbencoding test table is dropped Oliver Jowett <oliver@opencloud.com>
2004-07-20 06:03 ` Re: patch: ensure testdbencoding test table is dropped Kris Jurka <books@ejurka.com>
@ 2004-07-20 06:24 ` Oliver Jowett <oliver@opencloud.com>
2004-07-21 20:12 ` Re: patch: ensure testdbencoding test table is dropped Kris Jurka <books@ejurka.com>
0 siblings, 1 reply; 6+ messages in thread
From: Oliver Jowett @ 2004-07-20 06:24 UTC (permalink / raw)
To: Kris Jurka <books@ejurka.com>; +Cc: pgsql-jdbc
Kris Jurka wrote:
>
> On Tue, 20 Jul 2004, Oliver Jowett wrote:
>
>
>>Minor patch to make sure the testdbencoding test table is dropped
>>(otherwise it interferes with the table metadata test in subsequent runs).
>
>
> The only comment on messing with autocommit at all is "Go faster". Other
> tests avoid using transactions unless needed, what kind of speed up are we
> looking at here? 1 second? 10? It might just be easier to not mess with
> autocommit at all.
It does ~1800 INSERTs -- that's going to take a while with autocommit
on. Turning autocommit on for that one test adds ~15 seconds to the
testsuite run on my machine against 7.4. I think 7.3 will be worse.
-O
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: patch: ensure testdbencoding test table is dropped
2004-07-20 05:32 patch: ensure testdbencoding test table is dropped Oliver Jowett <oliver@opencloud.com>
2004-07-20 06:03 ` Re: patch: ensure testdbencoding test table is dropped Kris Jurka <books@ejurka.com>
2004-07-20 06:24 ` Re: patch: ensure testdbencoding test table is dropped Oliver Jowett <oliver@opencloud.com>
@ 2004-07-21 20:12 ` Kris Jurka <books@ejurka.com>
2004-07-21 21:07 ` Re: patch: ensure testdbencoding test table is dropped Oliver Jowett <oliver@opencloud.com>
0 siblings, 1 reply; 6+ messages in thread
From: Kris Jurka @ 2004-07-21 20:12 UTC (permalink / raw)
To: Oliver Jowett <oliver@opencloud.com>; +Cc: pgsql-jdbc
On Tue, 20 Jul 2004, Oliver Jowett wrote:
> It does ~1800 INSERTs -- that's going to take a while with autocommit
> on. Turning autocommit on for that one test adds ~15 seconds to the
> testsuite run on my machine against 7.4. I think 7.3 will be worse.
>
Is perhaps this test being a little overzealous. Do we really need to
test every possible code point to determine if it is working or not?
Seems that testing even every 100th code point would be sufficient.
Kris Jurka
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: patch: ensure testdbencoding test table is dropped
2004-07-20 05:32 patch: ensure testdbencoding test table is dropped Oliver Jowett <oliver@opencloud.com>
2004-07-20 06:03 ` Re: patch: ensure testdbencoding test table is dropped Kris Jurka <books@ejurka.com>
2004-07-20 06:24 ` Re: patch: ensure testdbencoding test table is dropped Oliver Jowett <oliver@opencloud.com>
2004-07-21 20:12 ` Re: patch: ensure testdbencoding test table is dropped Kris Jurka <books@ejurka.com>
@ 2004-07-21 21:07 ` Oliver Jowett <oliver@opencloud.com>
0 siblings, 0 replies; 6+ messages in thread
From: Oliver Jowett @ 2004-07-21 21:07 UTC (permalink / raw)
To: Kris Jurka <books@ejurka.com>; +Cc: pgsql-jdbc
Kris Jurka wrote:
>
> On Tue, 20 Jul 2004, Oliver Jowett wrote:
>
>>It does ~1800 INSERTs -- that's going to take a while with autocommit
>>on. Turning autocommit on for that one test adds ~15 seconds to the
>>testsuite run on my machine against 7.4. I think 7.3 will be worse.
>>
>
>
> Is perhaps this test being a little overzealous. Do we really need to
> test every possible code point to determine if it is working or not?
> Seems that testing even every 100th code point would be sufficient.
<shrug> Change it if you like -- I did the exhaustive test because it
seemed cheap enough. Perhaps you could just increase STEP.
Either way, the current CVS testcase still doesn't drop the table when
it's done.
-O
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: patch: ensure testdbencoding test table is dropped
2004-07-20 05:32 patch: ensure testdbencoding test table is dropped Oliver Jowett <oliver@opencloud.com>
@ 2004-07-27 05:20 ` Kris Jurka <books@ejurka.com>
1 sibling, 0 replies; 6+ messages in thread
From: Kris Jurka @ 2004-07-27 05:20 UTC (permalink / raw)
To: Oliver Jowett <oliver@opencloud.com>; +Cc: pgsql-jdbc
On Tue, 20 Jul 2004, Oliver Jowett wrote:
> Minor patch to make sure the testdbencoding test table is dropped
> (otherwise it interferes with the table metadata test in subsequent runs).
Applied.
Kris Jurka
^ permalink raw reply [nested|flat] 6+ messages in thread
end of thread, other threads:[~2004-07-27 05:20 UTC | newest]
Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2004-07-20 05:32 patch: ensure testdbencoding test table is dropped Oliver Jowett <oliver@opencloud.com>
2004-07-20 06:03 ` Kris Jurka <books@ejurka.com>
2004-07-20 06:24 ` Oliver Jowett <oliver@opencloud.com>
2004-07-21 20:12 ` Kris Jurka <books@ejurka.com>
2004-07-21 21:07 ` Oliver Jowett <oliver@opencloud.com>
2004-07-27 05:20 ` Kris Jurka <books@ejurka.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox