regression tests for ALTER TABLE ... DEFAULT

Started by Neil Conwayover 24 years ago11 messagespatches
Jump to latest
#1Neil Conway
neilc@samurai.com

The attached patch adds regression tests for setting and removing
default values using ALTER TABLE, on both views and tables.

(You'll need to apply the default-values-for-views patch that I sent
to -patches earlier for the regression tests to pass.)

Cheers,

Neil

--
Neil Conway <neilconway@rogers.com>
PGP Key ID: DB3C29FC

Attachments:

alter_table_regression-1.patchapplication/octet-stream; name=alter_table_regression-1.patchDownload+95-0
#2Bruce Momjian
bruce@momjian.us
In reply to: Neil Conway (#1)
Re: regression tests for ALTER TABLE ... DEFAULT

Your patch has been added to the PostgreSQL unapplied patches list at:

http://candle.pha.pa.us/cgi-bin/pgpatches

I will try to apply it within the next 48 hours.

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

Neil Conway wrote:

The attached patch adds regression tests for setting and removing
default values using ALTER TABLE, on both views and tables.

(You'll need to apply the default-values-for-views patch that I sent
to -patches earlier for the regression tests to pass.)

Cheers,

Neil

--
Neil Conway <neilconway@rogers.com>
PGP Key ID: DB3C29FC

[ Attachment, skipping... ]

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026
#3Bruce Momjian
bruce@momjian.us
In reply to: Neil Conway (#1)
Re: regression tests for ALTER TABLE ... DEFAULT

Patch applied. Thanks.

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

Neil Conway wrote:

The attached patch adds regression tests for setting and removing
default values using ALTER TABLE, on both views and tables.

(You'll need to apply the default-values-for-views patch that I sent
to -patches earlier for the regression tests to pass.)

Cheers,

Neil

--
Neil Conway <neilconway@rogers.com>
PGP Key ID: DB3C29FC

[ Attachment, skipping... ]

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026
#4Peter Eisentraut
peter_e@gmx.net
In reply to: Neil Conway (#1)
Re: regression tests for ALTER TABLE ... DEFAULT

Neil Conway writes:

The attached patch adds regression tests for setting and removing
default values using ALTER TABLE, on both views and tables.

Regression tests tend to be more useful if they are added to the list of
tests to run during 'make check'.

--
Peter Eisentraut peter_e@gmx.net

#5Bruce Momjian
bruce@momjian.us
In reply to: Peter Eisentraut (#4)
Re: regression tests for ALTER TABLE ... DEFAULT

Peter Eisentraut wrote:

Neil Conway writes:

The attached patch adds regression tests for setting and removing
default values using ALTER TABLE, on both views and tables.

Regression tests tend to be more useful if they are added to the list of
tests to run during 'make check'.

I am seeing regression failures and am working on those now.

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026
#6Neil Conway
neilc@samurai.com
In reply to: Peter Eisentraut (#4)
Re: regression tests for ALTER TABLE ... DEFAULT

On Tue, 23 Apr 2002 23:34:59 -0400 (EDT)
"Peter Eisentraut" <peter_e@gmx.net> wrote:

Neil Conway writes:

The attached patch adds regression tests for setting and removing
default values using ALTER TABLE, on both views and tables.

Regression tests tend to be more useful if they are added to the list of
tests to run during 'make check'.

I'm not sure what you mean -- my patch just adds some new SQL to the
existing regression test for ALTER TABLE, it doesn't add any new
tests. Can you elaborate on what else needs to be done?

Cheers,

Neil

--
Neil Conway <neilconway@rogers.com>
PGP Key ID: DB3C29FC

#7Peter Eisentraut
peter_e@gmx.net
In reply to: Neil Conway (#6)
Re: regression tests for ALTER TABLE ... DEFAULT

Neil Conway writes:

I'm not sure what you mean -- my patch just adds some new SQL to the
existing regression test for ALTER TABLE, it doesn't add any new
tests. Can you elaborate on what else needs to be done?

OK, I see it now. I've been looking for that test to show up, but it's
there already.

--
Peter Eisentraut peter_e@gmx.net

#8Peter Eisentraut
peter_e@gmx.net
In reply to: Bruce Momjian (#5)
Re: regression tests for ALTER TABLE ... DEFAULT

Bruce Momjian writes:

Peter Eisentraut wrote:

Neil Conway writes:

The attached patch adds regression tests for setting and removing
default values using ALTER TABLE, on both views and tables.

Regression tests tend to be more useful if they are added to the list of
tests to run during 'make check'.

I am seeing regression failures and am working on those now.

Don't you ever run the tests before checking stuff in?

--
Peter Eisentraut peter_e@gmx.net

#9Bruce Momjian
bruce@momjian.us
In reply to: Peter Eisentraut (#8)
Re: regression tests for ALTER TABLE ... DEFAULT

Peter Eisentraut wrote:

Bruce Momjian writes:

Peter Eisentraut wrote:

Neil Conway writes:

The attached patch adds regression tests for setting and removing
default values using ALTER TABLE, on both views and tables.

Regression tests tend to be more useful if they are added to the list of
tests to run during 'make check'.

I am seeing regression failures and am working on those now.

Don't you ever run the tests before checking stuff in?

Nope. I do it once a batch is checked in. I assume submitters have
already done it. Too much work.

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026
#10Tom Lane
tgl@sss.pgh.pa.us
In reply to: Bruce Momjian (#9)
Re: regression tests for ALTER TABLE ... DEFAULT

Bruce Momjian <pgman@candle.pha.pa.us> writes:

Don't you ever run the tests before checking stuff in?

... Nope. I do it once a batch is checked in. I assume submitters have
already done it. Too much work.

Whether or not you assume that the submitter ran regress tests, it's
unsafe to assume that a several-days-old patch is still good against
current CVS tip. Especially not when you get merge failures, as you
certainly must have in this case.

regards, tom lane

#11Bruce Momjian
bruce@momjian.us
In reply to: Tom Lane (#10)
Re: regression tests for ALTER TABLE ... DEFAULT

Tom Lane wrote:

Bruce Momjian <pgman@candle.pha.pa.us> writes:

Don't you ever run the tests before checking stuff in?

... Nope. I do it once a batch is checked in. I assume submitters have
already done it. Too much work.

Whether or not you assume that the submitter ran regress tests, it's
unsafe to assume that a several-days-old patch is still good against
current CVS tip. Especially not when you get merge failures, as you
certainly must have in this case.

Proper patch testing requires initdb and regression tests. I do those
at the end of a batch of patches, not for each one.

If you want to agitate that there are problems with my patch
application, go ahead.

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026