Commit Graph

2600 Commits

Author SHA1 Message Date
Marc G. Fournier
2074b5f1ad failed to add some of Jan's files :( 1998-10-01 03:38:45 +00:00
Thomas G. Lockhart
96273049e9 Message changed slightly since "rename" is now allowed as a column name. 1998-09-30 05:43:23 +00:00
Marc G. Fournier
44e01bf992 From: Jan Wieck <jwieck@debis.com>
here  is  the  patch  that  includes  PL/pgSQL into the build
    (currently with make errors ignored) and  adds  a  regression
    test for it. A clean build and regression ran fine here.

    Can you please apply it?

    The  tar  should  be  extracted  in  /usr/local/src/pgsql and
    creates the following files:

    src/pl/Makefile
            called by toplevel GNUmakefile and for now only calls
            src/pl/plpgsql/Makefile

    src/pl/plpgsql/Makefile
            calls  src/pl/plpgsql/src/Makefile  (here the call to
            make ignores build errors  -  this  must  be  changed
            later for the final release).

    src/test/regress/input/install_plpgsql.source
            SQL script installing PL/pgSQL language in regression
            database. Will be modified by  .../input/Makefile  to
            point  to  correct  PGLIB  directory where plpgsql.so
            gets installed.

    src/test/regress/output/install_plpgsql.source
            expected output for installation script.

    src/test/regress/sql/plpgsql.sql
            the main regression  test.  It  tests  functions  and
            triggers written in PL/pgSQL including views that use
            supportfunctions in this language.

    src/test/regress/expected/plpgsql.out
            the expected output for the above regression test.

    make_plpgsql.diff
            patch that adds some lines to

            src/GNUmakefile.in
            src/test/regress/expected/Makefile
            src/test/regress/input/Makefile
            src/test/regress/output/Makefile
            src/test/regress/sql/Makefile
            src/test/regress/sql/tests
1998-09-29 12:43:05 +00:00
Bruce Momjian
738dc876ed Here are some patches to fix up the regression tests so that the union
test passes.  Interestingly, the fix involves no changes or special
cases in the union test and actually removes a special case for the
numerology test.  Thus, following the strategy outlined below is a
definite improvement over the previous situation.

Cheers,
Brook
1998-09-22 16:52:59 +00:00
Bruce Momjian
087eb4cd1a Regression test cleanup. 1998-09-18 21:47:27 +00:00
Thomas G. Lockhart
5a68fd56cd Consolidate Jan's rules test into one file.
Remove dependency on a specific Postgres user name in the results
 (Check result against CURRENT_USER with a boolean instead).
1998-09-16 14:35:37 +00:00
Bruce Momjian
bcc15f15e1 > David Hartwig wrote:
>
> Please apply this HAVING regression patch.
> > My bad.   It is caused by a known bug having to do with GROUP BY.
It ain't$
> > nothing to do with HAVING.  For some reason the bug went away for a
while, $
> > script.  It must have, because that is how I created the expected
file.   :(
> >
> > A patch to the regression will be forthcoming.
>
1998-09-02 23:37:13 +00:00
Bruce Momjian
fa1a8d6a97 OK, folks, here is the pgindent output. 1998-09-01 04:40:42 +00:00
Bruce Momjian
af74855a60 Renaming cleanup, no pgindent yet. 1998-09-01 03:29:17 +00:00
Thomas G. Lockhart
6f3de1bb66 Types removed from Postgres: oidint2, oidint4, oidname.
Fix example columns in alter_table.out to use datetime and timespan
 as a substitute for oidint4 and oidname.
1998-08-30 19:54:04 +00:00
Bruce Momjian
5a722414a1 This patch resolves some regression test failures caused by platform
dependencies.

David Hartwig
1998-08-29 04:10:40 +00:00
Bruce Momjian
013184c882 Ignore spaces when reporting regression failures. 1998-08-28 14:17:57 +00:00
Bruce Momjian
63b01ba38d just that the regression tests for rules work, please apply
the following to regress/sql/tests.

    If applying by hand note that the setup_... must run before
    the run_... (that I splitted these two was due to the errors
    that occured when creating rules and using them then in the
    same session - I'll post another fix for this later).

    BTW: the regression tests sanity_checks and alter_table fail
    now due to the remove of some indices and the oidint4 and
    oidname types. At least expectes should be set to the current
    results.

    Thanks.


Jan
1998-08-24 01:17:46 +00:00
Marc G. Fournier
1a77894d46 Add rule tests to regression tests... 1998-08-19 00:14:39 +00:00
Marc G. Fournier
338c54cbc1 From: Jan Wieck <jwieck@debis.com>
Hi,

    as  proposed here comes the first patch for the query rewrite
    system.

  <for details, see archive dated Mon, 17 Aug 1998>
1998-08-18 00:49:04 +00:00
Thomas G. Lockhart
620c2c362f Update the random test so it should succeed most of the time.
Instead of directly showing the random results, test the results
 for the expected behavior (range and randomness).
1998-08-17 16:11:35 +00:00
Marc G. Fournier
a1627a1d64 From: David Hartwig <daybee@bellatlantic.net>
I have attached a patch to allow GROUP BY and/or ORDER BY function or
expressions.  Note worthy items:

1. The expression or function need not be in the target list.
Example:
            SELECT  name FROM foo GROUP BY lower(name);

2.   Simplified the grammar to use expressions only.

3.  Cleaned up earlier patch in this area to make use of existing
utility functions.

3.  Reduced some of the members in the SortGroupBy parse node.   The
original data members were redundant with the new expression node.
(MUST do a "make clean" now)

4.  Added a new parse node "JoinUsing".   The JOIN USING clause was
overloading this SortGroupBy structure.   With the afore mentioned
reduction of members, the two clauses lost all their commonality.

5.  A bug still exist where, if a function or expression is GROUPed BY,
and an aggregate function does not include a attribute from the
expression or function, the backend crashes.   (or something like
that)   The bug pre-dates this patch.    Example:

    SELECT lower(a) AS lowcase, count(b) FROM foo GROUP BY lowcase;
                 *** BOOM  ***

    --Also when not in target list
    SELECT  count(b) FROM foo GROUP BY lower(a);
                *** BOOM  AGAIN ***
1998-08-05 04:49:19 +00:00
Marc G. Fournier
5979d73841 From: t-ishii@sra.co.jp
As Bruce mentioned, this is due to the conflict among changes we made.
Included patches should fix the problem(I changed all MB to
MULTIBYTE). Please let me know if you have further problem.

P.S. I did not include pathces to configure and gram.c to save the
file size(configure.in and gram.y modified).
1998-07-26 04:31:41 +00:00
Marc G. Fournier
bf00bbb0c4 I really hope that I haven't missed anything in this one...
From: t-ishii@sra.co.jp

Attached are patches to enhance the multi-byte support.  (patches are
against 7/18 snapshot)

* determine encoding at initdb/createdb rather than compile time

Now initdb/createdb has an option to specify the encoding. Also, I
modified the syntax of CREATE DATABASE to accept encoding option. See
README.mb for more details.

For this purpose I have added new column "encoding" to pg_database.
Also pg_attribute and pg_class are changed to catch up the
modification to pg_database.  Actually I haved added pg_database_mb.h,
pg_attribute_mb.h and pg_class_mb.h. These are used only when MB is
enabled. The reason having separate files is I couldn't find a way to
use ifdef or whatever in those files. I have to admit it looks
ugly. No way.

* support for PGCLIENTENCODING when issuing COPY command

commands/copy.c modified.

* support for SQL92 syntax "SET NAMES"

See gram.y.

* support for LATIN2-5
* add UNICODE regression test case
* new test suite for MB

New directory test/mb added.

* clean up source files

Basic idea is to have MB's own subdirectory for easier maintenance.
These are include/mb and backend/utils/mb.
1998-07-24 03:32:46 +00:00
Bruce Momjian
0da6358f37 Cleanup use of 16 that should be NAMEDATALEN. 1998-07-20 16:57:18 +00:00
Bruce Momjian
cfef73b4c0 Update linux_i386 fix. 1998-07-12 18:48:08 +00:00
Thomas G. Lockhart
fdcab1dbcb Moved to select_implicit.out. 1998-07-11 12:46:20 +00:00
Thomas G. Lockhart
a3c9cce930 "select_implicit" is renamed from "junkfilter" test.
Move from last test in list up to other "select_xxx" tests.
1998-07-09 14:32:58 +00:00
Thomas G. Lockhart
511b368f97 Renamed from "junkfilter" test. 1998-07-09 14:32:14 +00:00
Thomas G. Lockhart
e2ba4ee2a8 Include tests for new 8-byte integer.
Include tests for HAVING clause.
1998-07-08 14:31:02 +00:00
Thomas G. Lockhart
5e7beed3eb Include int8_tbl from tests for new 8-byte integer. 1998-07-08 14:30:21 +00:00
Thomas G. Lockhart
4405a85d7f Include tests for new 8-byte integer (minimal).
Include tests for HAVING clause.
1998-07-08 14:29:09 +00:00
Bruce Momjian
cb7cbc16fa Hi, here are the patches to enhance existing MB handling. This time
I have implemented a framework of encoding translation between the
backend and the frontend. Also I have added a new variable setting
command:

SET CLIENT_ENCODING TO 'encoding';

Other features include:
	Latin1 support more 8 bit cleaness

See doc/README.mb for more details. Note that the pacthes are
against May 30 snapshot.

Tatsuo Ishii
1998-06-16 07:29:54 +00:00
Bruce Momjian
8d8bcda253 Hello!
Attached to the mail is locale-patch.tar.gz. In the archive
   there are:

file README.locale
   short description

directory src/test/locale
   test suite; currently only koi8-r tests, but the suite can be
   easily extended

file locale.patch
   the very patch; to apply: patch < locale.patch; should be applied
   to postgres-6.3.2 (at least I created it with 6.3.2 without any
additional
   patches)

   Files touched by the patch:  src/include/utils/builtins.h
src/backend/utils/adt/char.c src/backend/utils/adt/varchar.c
src/backend/utils/adt/varlena.c

Oleg
1998-06-16 06:42:02 +00:00
Bruce Momjian
6bd323c6b3 Remove un-needed braces around single statements. 1998-06-15 19:30:31 +00:00
Bruce Momjian
b952a8491e Also added two new files.
src/test/regess/sql/junkfilter.sql                --  SQL for
regression test src/test/regess/expected/junkfilter.out      --
Expected output SQL for regression test


David Hartwig
1998-06-05 03:56:03 +00:00
Bruce Momjian
2e6159311a I made several adjustments to my earlier patch to handle the
condition where the target label is ambiguous.
1998-06-05 03:49:20 +00:00
Thomas G. Lockhart
5812d51270 Add test for UNION.
Add additional tests in strings for conversions of the "name" data type.
Test SQL92 string functions such as SUBSTRING() and POSITION().
1998-05-29 13:23:02 +00:00
Thomas G. Lockhart
3955d66803 Add test for UNION.
Add additional tests in strings for conversions of the "name" data type.
Test SQL92 string functions such as SUBSTRING() and POSITION().
Fix geometry tests to reflect code fixed by Gautam.
Update error messages.
1998-05-29 13:22:42 +00:00
Marc G. Fournier
e3a4ceac92 From: Brook Milligan <brook@trillium.NMSU.Edu>
Everything (except of course random) passes on my netbsd box except int2,
int4, oidint2, and oidint4; all fail because of error message differences.
Below are some patches to the expectations to correct the problem by creating
*-NetBSD.out files.
1998-05-24 03:52:39 +00:00
Bruce Momjian
58fffea03c Cleanups for large objects, so file is trucated on open, fix for
solaris/spare shared libararies, new error message for postmaster
startup, and makefile cleanups.
1998-05-12 21:44:08 +00:00
Thomas G. Lockhart
02a9d7e273 Changed error message slightly. 1998-05-09 23:50:24 +00:00
Marc G. Fournier
bab9818c4b Missed adding two files from the MultiByte patch... 1998-04-29 12:26:22 +00:00
Marc G. Fournier
f554af0a9f From: t-ishii@sra.co.jp
Hi, here are patches I promised (against 6.3.2):

* character_length(), position(), substring() are now aware of
          multi-byte characters
* add octet_length()
* add --with-mb option to configure
* new regression tests for EUC_KR
  (contributed by "Soonmyung. Hong" <hong@lunaris.hanmesoft.co.kr>)
* add some test cases to the EUC_JP regression test
* fix problem in regress/regress.sh in case of System V
* fix toupper(), tolower() to handle 8bit chars

note that:

o  patches for both configure.in and configure are
included. maybe the one for configure is not necessary.

o pg_proc.h was modified to add octet_length(). I used OIDs
(1374-1379) for that. Please let me know if these numbers are not
appropriate.
1998-04-27 17:10:50 +00:00
Bruce Momjian
3e3477f5a4 Add Darren's char2-16 files. 1998-04-27 13:50:03 +00:00
Bruce Momjian
0d203b745d Re-apply Darren's char2-16 removal code. 1998-04-26 04:12:15 +00:00
Bruce Momjian
45a0b4743a Remove name.* files. 1998-04-08 02:32:52 +00:00
Bruce Momjian
db21523314 Back out char2-char16 removal. Add later. 1998-04-07 18:14:38 +00:00
Bruce Momjian
9fbdda039d Fix macro read violation for Maurice. 1998-03-31 15:53:51 +00:00
Bruce Momjian
d7050cb68c Merge rename name page into alter table. Fix UNION with DISTINCT
or ORDER BY bug.
1998-03-31 04:44:35 +00:00
Bruce Momjian
57b5966405 The following uuencoded, gzip'd file will ...
1. Remove the char2, char4, char8 and char16 types from postgresql
2. Change references of char16 to name in the regression tests.
3. Rename the char16.sql regression test to name.sql.  4. Modify
the regression test scripts and outputs to match up.

Might require new regression.{SYSTEM} files...

Darren King
1998-03-30 17:28:21 +00:00
Marc G. Fournier
9b381a69f6 Add NetBSD specific expected files 1998-03-22 19:46:45 +00:00
Marc G. Fournier
5191d5207f Slightly updated regression output for FreeBSD 3.0-CURRENT 1998-03-22 19:40:33 +00:00
Marc G. Fournier
609026bb6b From: t-ishii@sra.co.jp
Included are patches intended for allowing PostgreSQL to handle
multi-byte charachter sets such as EUC(Extende Unix Code), Unicode and
Mule internal code. With the MB patch you can use multi-byte character
sets in regexp and LIKE. The encoding system chosen is determined at
the compile time.

To enable the MB extension, you need to define a variable "MB" in
Makefile.global or in Makefile.custom. For further information please
take a look at README.mb under doc directory.

(Note that unlike "jp patch" I do not use modified GNU regexp any
more. I changed Henry Spencer's regexp coming with PostgreSQL.)
1998-03-15 07:53:03 +00:00
Marc G. Fournier
661ecf3c48 From: t-ishii@sra.co.jp
Included are patches intended for allowing PostgreSQL to handle
multi-byte charachter sets such as EUC(Extende Unix Code), Unicode and
Mule internal code. With the MB patch you can use multi-byte character
sets in regexp and LIKE. The encoding system chosen is determined at
the compile time.

To enable the MB extension, you need to define a variable "MB" in
Makefile.global or in Makefile.custom. For further information please
take a look at README.mb under doc directory.

(Note that unlike "jp patch" I do not use modified GNU regexp any
more. I changed Henry Spencer's regexp coming with PostgreSQL.)
1998-03-15 07:39:04 +00:00
Bruce Momjian
3674ccdf95 Change Postgres95 to PostgreSQL. Update CLUSTER manual page. 1998-03-14 21:58:09 +00:00
Marc G. Fournier
bc58c5867d Further updated regression output for FreeBSD 1998-02-28 21:28:30 +00:00
Marc G. Fournier
472d802ced Update regression output for FreeBSD 1998-02-27 03:25:43 +00:00
Marc G. Fournier
29cdd1204a New regression test output for Aix from Darren 1998-02-27 03:17:54 +00:00
Marc G. Fournier
877224154d From: Jan Wieck <jwieck@debis.com>
I thought it would be a good idea to ensure that the new view
    permission  model  will  not   get   broken   by   subsequent
    fixes/changes. So I wrote a little regression test for it.

    There  is  an  ugly thing in this regression test. It creates
    temporary a test user that is required  for  the  tests.  The
    user  is removed at the end of the test, but if sometimes the
    regression suite is aborted or crashes exactly here, the test
    user will lay around in the pg_shadow.  Don't have a clue how
    to get around.
1998-02-27 02:38:15 +00:00
Bruce Momjian
a32450a585 pgindent run before 6.3 release, with Thomas' requested changes. 1998-02-26 04:46:47 +00:00
Marc G. Fournier
48a61651b5 Add updated regression output for Solaris-Sparc
Remove SunOS
1998-02-25 20:51:10 +00:00
Marc G. Fournier
3cff97d722 Commit Solaris-i386 regression.diffs file for comparisons 1998-02-25 15:06:47 +00:00
Marc G. Fournier
f39bf166e9 Change from -u to -wC3 ... 1998-02-25 15:02:18 +00:00
Marc G. Fournier
f0da7129f5 Change -c to -u for regress.sh...should shrink regression.<portname> somewhat
at the same time...

Suggested by: Frank Ridderbusch <ridderbusch.pad@sni.de>
1998-02-24 15:56:45 +00:00
Vadim B. Mikheev
11303a941f Second query in select_views.sql is replaced. 1998-02-23 13:59:34 +00:00
Bruce Momjian
55f86ec8f7 Configure patches from Brook Milligan. 1998-02-22 20:02:34 +00:00
Marc G. Fournier
0e1a352f09 From: Darren King <darrenk@insightdist.com>
Enclosed is the regression.diffs file from running the Feb 21st
snapshot regression tests for inclusion in src/test/regression
as regression.Aix41.  Appears to be standard differences to me,
error messages, fp accuracy and times off by an hour due to PST
vs PDT.
1998-02-22 00:02:18 +00:00
Vadim B. Mikheev
e0aab4aa9e Restore 6.2.1 output 1998-02-18 13:15:07 +00:00
Thomas G. Lockhart
ca45412853 Add new subselect test. 1998-02-18 07:32:17 +00:00
Thomas G. Lockhart
ca38b10c00 New table from new subselect test. 1998-02-18 07:29:45 +00:00
Bruce Momjian
24cab6bd0d Goodbye register keyword. Compiler knows better. 1998-02-11 19:14:04 +00:00
Thomas G. Lockhart
9d99dacd08 Update test for newly implemented "<=" operator. 1998-02-11 04:13:33 +00:00
Marc G. Fournier
1f4f6b22bc regression test based off of Solaris/Sparc v2.6 1998-02-10 17:42:54 +00:00
Marc G. Fournier
2a3c589c5a Clean up regression tests for SunOS (based on Solaris v2.6)
Clean up strings.out , removed func_get_detail from error message
1998-02-10 14:22:50 +00:00
Marc G. Fournier
ff88f7db9d Current output for FreeBSD (2/1/98) 1998-02-02 01:48:25 +00:00
Marc G. Fournier
44030ef229 minor change so that it outputs to regression.diffs ... 1998-02-01 11:46:10 +00:00
Marc G. Fournier
ca5eefb645 Make changes so that when the diff is done between 'expected' and 'results',
if an operating specific expected file exists, use that for the comparison.
This allows for "legit" differences between results, like the "Result too
large" message vs "Math result not representable" ...

Also, have the failed diffs get output to regression.diffs so that its easy to
view those tests that failed
1998-02-01 11:43:17 +00:00
Marc G. Fournier
8169769ee5 From: "Michael J. Maravillo" <mmj@philonline.com>
This patch makes it possible to do a "real" make distclean (back to its
fresh state) on the distribution after compilation, regression testing,
etc.
1998-01-17 23:39:35 +00:00
Marc G. Fournier
d8972c62b4 this should pretty much clean up the i386_solaris port, with regression
tests running "as expected"...
1998-01-13 20:13:19 +00:00
Marc G. Fournier
a5b106ee89 Updated Regression output 1998-01-13 05:28:21 +00:00
Thomas G. Lockhart
d70df16a76 Fix up for recent changes in elog error messages.
Some behavior of the triggers test cases changed for the least week or two;
 now back to the usual expected behavior.
1998-01-10 17:50:49 +00:00
Bruce Momjian
e6c6146eb8 Allow varchar() to only store needed bytes. Remove PALLOC,PALLOCTYPE,PFREE. Clean up use of VARDATA. 1998-01-07 18:47:07 +00:00
Bruce Momjian
845f82e541 Regression cleanup of WARN. 1998-01-06 19:25:19 +00:00
Bruce Momjian
9d00fbbeb0 Change some labels in bootparse to make ctags happy. Clean up outfunc/readfunc code and add missing fields for Query structure and new Union fields. Fix optimizer bug shown in new \do command. Change WARN to ERROR in contrib and regression stuff. 1998-01-06 18:53:02 +00:00
Bruce Momjian
0d9fc5afd6 Change elog(WARN) to elog(ERROR) and elog(ABORT). 1998-01-05 03:35:55 +00:00
Marc G. Fournier
0aa928764a Various fixes NETBSD/sparc related
From: Tom I Helbekkmo <tih@Hamartun.Priv.NO>
1998-01-04 19:13:04 +00:00
Thomas G. Lockhart
b180144545 Include SPI module when cleaning. 1998-01-01 05:37:29 +00:00
Marc G. Fournier
1f9eb5c106 Add regression output from FreeBSD 1997-12-19 21:23:19 +00:00
Marc G. Fournier
d370849a9d Here is the difference between expected->results of the regression
tests under sparc_solaris
1997-12-19 15:50:18 +00:00
Thomas G. Lockhart
b31df3ebb7 Mention PST8PDT explicitly in the banner message (rather than PST/PDT). 1997-12-16 16:01:05 +00:00
Thomas G. Lockhart
405740ace6 Include informational messages added for implicit index creation. 1997-12-09 01:46:31 +00:00
Thomas G. Lockhart
d358456ca3 Add test for multi-character char(). 1997-12-05 01:14:55 +00:00
Thomas G. Lockhart
733f2a43cc Change constraint syntax to SQL92 style.
Add tests for PRIMARY KEY and UNIQUE clauses.
1997-12-05 00:01:22 +00:00
Thomas G. Lockhart
df823bc42d Deep-six tests using time travel, which has been removed from Postgres. 1997-12-01 02:51:07 +00:00
Thomas G. Lockhart
7a86a2a9e5 Add tests for varchar() and combinations of string types. 1997-12-01 02:48:47 +00:00
Thomas G. Lockhart
1d7b6f14e2 Adjust tests to reflect removal of time travel.
Add tests for strings and varchar.
1997-12-01 02:46:13 +00:00
Thomas G. Lockhart
f901971c86 Adjust output to reflect changes in tests. 1997-12-01 02:44:53 +00:00
Bruce Momjian
4a5b781d71 Break parser functions into smaller files, group together. 1997-11-25 22:07:18 +00:00
Thomas G. Lockhart
2e0976e003 Fix testing problem when 'current' equal to 'now' for separate inserts
on fast machines with fast disks.
Adjust a few other tests to be more complete.
1997-11-15 02:55:57 +00:00
Thomas G. Lockhart
208dae3727 Set time zone and date style environment variables.
Update banner message regarding time zone.
1997-11-14 15:57:12 +00:00
Thomas G. Lockhart
9507e539e2 Remove unnecessary inclusion of <ctype.h>. 1997-11-10 15:43:26 +00:00
Thomas G. Lockhart
6210dd5264 File is created by make from source in ../output 1997-11-07 06:47:41 +00:00
Thomas G. Lockhart
6698389349 Change error message for rejected input. 1997-11-07 06:32:05 +00:00
Thomas G. Lockhart
e037c351d4 Update for modified quoting style in some error messages. 1997-10-30 16:53:51 +00:00
Bruce Momjian
a47158a0e1 Add script to check regression tests. 1997-10-30 04:27:14 +00:00
Thomas G. Lockhart
f15eeff1bd Modify to reflect changes in boolean input behavior (rejects bad input
rather than assuming FALSE).
1997-10-25 06:03:08 +00:00
Thomas G. Lockhart
ac357fb44c Remove extraneous row from user_relns table. Don't know where it came from... 1997-10-25 06:01:21 +00:00
Vadim B. Mikheev
fcfb4d1df6 Changes due to fixed DEFAULT behaviour. 1997-10-17 09:59:09 +00:00
Vadim B. Mikheev
142d42f938 Scripts to run queries and data. 1997-09-26 14:57:36 +00:00
Vadim B. Mikheev
dbde5caeed Some results. 1997-09-26 14:55:44 +00:00
Vadim B. Mikheev
cf76759f34 Start with performance suite. 1997-09-26 14:55:21 +00:00
Bruce Momjian
2f4275327e Massive examples fix from Nicola Bernardelli 1997-09-25 16:35:52 +00:00
Thomas G. Lockhart
d77a506307 Use additional ORDER BY to cope with new sorting routines. 1997-09-24 17:55:38 +00:00
Vadim B. Mikheev
c13454edc2 Timetravel tests. 1997-09-24 08:36:47 +00:00
Vadim B. Mikheev
76271543ae Added: ttdummy() - variation of timetravel() function
for regress test.
1997-09-24 08:35:10 +00:00
Thomas G. Lockhart
1556e62573 Output changed for new ORDER BY to cope with new sorting routines. 1997-09-20 16:37:02 +00:00
Thomas G. Lockhart
7971fb0d79 Output changed to reflect extra entries from new regression tests. 1997-09-20 16:35:34 +00:00
Thomas G. Lockhart
8bb569105a Change ORDER BY to get consistant results with new sorting routines. 1997-09-20 16:34:08 +00:00
Thomas G. Lockhart
d8ec518000 Update results count to reflect bad entries now being rejected by new decoder. 1997-09-20 16:33:24 +00:00
Thomas G. Lockhart
68cd097e89 Change ORDER BY to get more consistant results. 1997-09-20 16:31:44 +00:00
Bruce Momjian
3f365ba0fc Inline memset() as MemSet(). 1997-09-18 20:22:58 +00:00
Vadim B. Mikheev
2a3e28282e QUERY: SELECT p.name, p.age FROM person* p ORDER BY age using >;
^^^^^^ - new order of tuples (due to psort changes)
1997-09-18 14:45:33 +00:00
Thomas G. Lockhart
36b54847cb Add explicit test for various comment syntaxes. 1997-09-18 03:54:19 +00:00
Thomas G. Lockhart
1d9ad887cd Explicitly test various comment syntaxes. 1997-09-18 03:52:43 +00:00
Thomas G. Lockhart
2b4be93787 Modify to match current expected output
after adding separate sections for DEFAULT and CHECK.
1997-09-16 16:17:19 +00:00
Thomas G. Lockhart
b8967bfeec Add explicit, separate test sections for DEFAULT and CHECK.
Use conventions common to other regression test input files.
Leave non-temporary files at end of test.
1997-09-16 16:15:52 +00:00
Thomas G. Lockhart
829354d849 Remove extraneous blank lines from error messages. 1997-09-16 16:13:58 +00:00
Thomas G. Lockhart
ebb000f805 Add results from Vadim's new tables. 1997-09-13 03:21:05 +00:00
Thomas G. Lockhart
05428ada1d Add tests for unary minus. 1997-09-13 03:20:18 +00:00
Thomas G. Lockhart
e4b27f2acd Make tests match with modified error messages. 1997-09-13 03:19:43 +00:00
Thomas G. Lockhart
aeecb4e505 Add a few tests for unary minus syntax. 1997-09-13 03:16:53 +00:00
Vadim B. Mikheev
ba247bd649 Tests for spi/triggers 1997-09-11 09:14:12 +00:00
Bruce Momjian
59f6a57e59 Used modified version of indent that understands over 100 typedefs. 1997-09-08 21:56:23 +00:00
Bruce Momjian
075cede748 Add typdefs to pgindent run. 1997-09-08 20:59:27 +00:00
Bruce Momjian
319dbfa736 Another PGINDENT run that changes variable indenting and case label indenting. Also static variable indenting. 1997-09-08 02:41:22 +00:00
Bruce Momjian
1ccd423235 Massive commit to run PGINDENT on all *.c and *.h files. 1997-09-07 05:04:48 +00:00
Thomas G. Lockhart
bebfe968e3 Test new intersection and closest point operators.
Fix up results labels on queries.
Update existing queries which now return good results.
1997-09-01 06:19:43 +00:00
Thomas G. Lockhart
2d0e6b0ff7 Test new intersection and closest point operators.
Fix up results labels on queries.
1997-09-01 06:18:45 +00:00
Thomas G. Lockhart
f2a9e203e8 Test for "current" time by comparing against "now". 1997-09-01 06:16:08 +00:00
Vadim B. Mikheev
174bc0c1e7 Tests for CHECK/DEFAULT 1997-08-28 04:49:34 +00:00
Bruce Momjian
1d8bbfd2e7 Make functions static where possible, enclose unused functions in #ifdef NOT_USED. 1997-08-19 21:40:56 +00:00
Bruce Momjian
ea5b5357cd Remove more (void) and fix -Wall warnings. 1997-08-12 22:55:25 +00:00
Thomas G. Lockhart
622af87fd2 Results from initial changes to add new functions and for bug fixes.
Not all cleaned up yet.
1997-07-29 16:24:04 +00:00
Thomas G. Lockhart
3d5dd9bdd9 Start adding tests for new geometry functions.
Not all cleaned up yet.
1997-07-29 16:22:48 +00:00
Thomas G. Lockhart
c5035643af Use better routines from geometry library. 1997-07-29 16:21:12 +00:00
Bruce Momjian
8d25436d70 mkLinux patches from Tatsuo Ishii. 1997-07-29 14:09:11 +00:00
Bruce Momjian
7c5afb87c3 Makefile fix from Tatsuo Ishii. 1997-07-28 23:57:20 +00:00
Bruce Momjian
35a952a2ed Fixes from Jody Winston 1997-07-10 01:15:11 +00:00
Thomas G. Lockhart
54c38a95ee Add test results for "SET DateStyle" alternative datetime formats. 1997-07-02 01:34:24 +00:00
Thomas G. Lockhart
48b5432769 Include tests for DateStyle output format variations. 1997-07-01 00:34:34 +00:00
Thomas G. Lockhart
c05a7bd972 Test "SET DateStyle TO..." output options. 1997-06-23 15:08:59 +00:00
Thomas G. Lockhart
3267b4b767 Adapt expected output to drop ".00" from datetime seconds field.
This is compatible with abstime formats.
1997-06-23 15:07:54 +00:00
Thomas G. Lockhart
89abee4691 Test the "SET DateStyle TO..." date formatting modes. 1997-06-23 15:05:52 +00:00
Thomas G. Lockhart
374b0009fd Fix predicted output for month boundary arithmetic problems in
datetime +/- timespan. Only manifested when date is at end of month
 and time pushes the date into the next month.
1997-06-20 17:20:55 +00:00
Thomas G. Lockhart
20e71222ea Change one date away from PST to avoid trouble after daylight savings time. 1997-06-06 06:13:10 +00:00
Thomas G. Lockhart
e7044d70ef Change one date away from PST to avoid trouble after daylight savings time. 1997-06-06 06:05:53 +00:00
Marc G. Fournier
355d6a2767 From: PortSite <info@portsite.nl>
The GNUmakefile in src/test/regress uses `gmake' for
the make program. This should be $(MAKE)
1997-06-06 01:35:57 +00:00
Thomas G. Lockhart
98b56067ed Use error message syntax consistant with other messages from the same
reference platform (Linux/gcc-lib/i686).
1997-06-03 14:34:51 +00:00
Thomas G. Lockhart
e6924c9750 Update to reflect new "drop aggregate" syntax and messages. 1997-06-03 14:31:46 +00:00
Thomas G. Lockhart
8aefe09731 Update to show new path and polygon syntax. 1997-06-03 14:29:51 +00:00
Thomas G. Lockhart
3d9584c9d9 Update path and polygon syntax to new conventions. 1997-06-03 14:24:12 +00:00
Thomas G. Lockhart
ad7952aae3 Update to use new path geometric type syntax.
Order in streets.data changed and is now alphabetical (sorry).
1997-06-03 14:21:36 +00:00
Thomas G. Lockhart
dc5bcc8621 Modify banner to suggest using PST8PDT time zone rather than full specifier
string.
1997-06-03 14:19:28 +00:00
Thomas G. Lockhart
066fce7bf9 Update to suggest using PST8PDT time zone rather than full time zone string.
Include section on error message differences.
1997-06-03 14:18:38 +00:00
Bruce Momjian
4d9b4dc973 Changed 1943 to 1947 to fix, other cleanups. 1997-06-01 02:30:25 +00:00
Marc G. Fournier
5e7c0a0b9a From: Darren King <aixssd!darrenk@abs.net>
Subject: [PATCHES] DROP AGGREGATE patch/fix.


Here's a patch that fixes the DROP AGGREGATE command to delete
the desired aggregate for a specific type.
1997-05-22 00:17:24 +00:00
Marc G. Fournier
3e871388b5 From: Darren King <aixssd!darrenk@abs.net>
Subject: [PATCHES] Re: [PORTS] AIX 6.1 fixes...

Here are the patches for the two things that wouldn't make it thru the AIX
compiler.  The geo_ops.c change is harmless I believe.  The nbtcompare.c patch
fixes me, but I don't know about any other ports.  Maybe wait on that one
until Vadim decides what to do about the unsigned vs signed chars varlena
issue.
1997-05-22 00:07:30 +00:00
Thomas G. Lockhart
99643abec7 Spiff up description of the regression tests and outcomes. 1997-05-17 06:17:45 +00:00
Thomas G. Lockhart
f8d4b3cf40 Fix expected output for datetime and abstime to/from date conversions.
This results from improvements in datetime.c which ensures that the
 conversions are done in local time rather than GMT.
1997-05-16 07:22:28 +00:00
Thomas G. Lockhart
8ce8d6550f Update to current information for upcoming v6.1 production release. 1997-05-11 15:46:19 +00:00
Thomas G. Lockhart
cc25efef92 More tables are listed in the user-defined relations from other regression
tests, including new tests.
1997-05-11 15:45:10 +00:00
Thomas G. Lockhart
83b8cf5b6b Add inter-type regression tests for geometry, date/time, and numbers.
Add regression tests for circles, line segments, and paths.
Modify regression tests to allow GEQ optimizer (order results).
1997-05-11 15:42:09 +00:00
Marc G. Fournier
6ef382c621 From: Keith Parks <emkxp01@mtcc.demon.co.uk>
Subject: [PATCHES] Patches for boolean, timespan and reltime regression tests.

Hi All,

Here are a couple of patches to the regression tests to introduce
some specific ordering to the results.

I've only made changes to the queries that were exhibiting differences
on my regression runs.

This will also have the side effect of testing the ordering code for
the boolean and some of the time types.
1997-05-09 03:26:56 +00:00
Vadim B. Mikheev
3e1933bc05 There is no more _CWD_ tag in sources... 1997-05-05 06:53:36 +00:00
Vadim B. Mikheev
7cbfb19c46 WARN:parser: parser error ...
changed to
WARN:parser: syntax error ...
1997-05-05 06:50:28 +00:00
Vadim B. Mikheev
62d1d23b6b If SELECT uses index (btree) then ordered results are returned. 1997-05-05 06:47:47 +00:00
Vadim B. Mikheev
fb100e6bf2 There is no partial index onek2_u1_prtl in tests... 1997-05-05 06:43:59 +00:00
Thomas G. Lockhart
917abdd140 Add substitution from output/.. to input/.. to match templates from inputs. 1997-05-02 13:43:14 +00:00
Thomas G. Lockhart
50f058e26f Update to work with new regression tests and directory structure. 1997-05-02 13:13:44 +00:00
Thomas G. Lockhart
f550efa237 New test data for aggregate functions. 1997-05-02 13:08:11 +00:00
Thomas G. Lockhart
a2fd844c3b Reorder tests and move aggregate table data to data/. 1997-04-29 14:29:16 +00:00
Thomas G. Lockhart
1594bf2a93 Added initial set of expected outputs for new regression testing.
Modified a few tests to match results on RedHat Linux/gcc for v6.1beta.
1997-04-29 14:23:51 +00:00
Thomas G. Lockhart
36712e8808 Provide template for the misc tests which contain path names. 1997-04-27 19:28:23 +00:00
Thomas G. Lockhart
9cdc80899a Fix path name templates. 1997-04-27 19:27:34 +00:00
Marc G. Fournier
65973e3f35 From: Keith Parks <emkxp01@mtcc.demon.co.uk>
Subject: [PATCHES] to make regress.sh shell friendly to echo.

Hi,

I needed to make the following change to regress.sh to make it more
shell friendly.

The Solaris /bin/sh, and others, use \c to supress the newline.
1997-04-27 18:55:37 +00:00
Marc G. Fournier
a426ff583d There, I'll leave this alone until Thomas catchs up *grin* 1997-04-27 18:13:54 +00:00
Marc G. Fournier
832c0a4ff1 split out a bunch more tests from misc.source so that the tester knows
what's being tested :)
1997-04-27 17:40:13 +00:00
Marc G. Fournier
557e0ed206 Alot of regression test fixes, mainly to compensate for moving
the DROP TABLE calls from the destroy.sql file to the 'types' .sql files,
so that they are self-contained

btree_index, hash_index and misc all fail as there seems to be missing
a 'misc.out' expected file...have asked Thomas for one...
1997-04-27 07:45:49 +00:00
Marc G. Fournier
a475d4d89c Get first four tests to pass:
=============== destroying old regression database... =================
=============== creating new regression database...   =================
=============== running regression queries...         =================
create_function_1 .. ok
create_type .. ok
create_table .. ok
create_function_2 .. ok
1997-04-27 04:50:06 +00:00
Marc G. Fournier
3451abf632 Make these self-contained tests...they are testing types, so the tables
that are created should only exist as long as the test requires them...

things are just toooooo spread around
1997-04-27 04:36:10 +00:00
Marc G. Fournier
b29c2da7dd Trying to continue breaking down the large files into smaller tests so that
debugging is a little (well, alot!) easier
1997-04-27 04:04:31 +00:00
Marc G. Fournier
f9526f886a clean up misc.source and create *individual test* files ... trying to move
away from one big massive confusing file
1997-04-27 04:03:50 +00:00
Marc G. Fournier
b63e57bea8 *shrug* I don't know anymore... 1997-04-27 03:57:34 +00:00
Marc G. Fournier
78454c2744 *shrug* 1997-04-27 03:56:23 +00:00
Marc G. Fournier
df77071773 Massive regression test patches from Thomas *woo hoo!* 1997-04-27 02:58:38 +00:00
Marc G. Fournier
afb539c25a Add a results directory and a Makefile so that 'make clean' cleans it out 1997-04-26 06:31:55 +00:00
Marc G. Fournier
b2f2e0316e More misc patches from Thomas for regression tests and linux templates 1997-04-26 05:50:25 +00:00
Marc G. Fournier
ba1a58919c Clean out/up some files that are causing me great headaches since I didn't
do this completely last time and Thomas is creating patches on files that
aren't supposed to exist :(
1997-04-26 05:45:48 +00:00
Marc G. Fournier
87fffc4342 Various bug fixes based on a bug report submitted by
Doug Neuhauser <doug@seismo.berkeley.edu> on April 15th
1997-04-24 20:02:02 +00:00
Marc G. Fournier
9e2a87b62d Major patch from Thomas Lockhart <Thomas.G.Lockhart@jpl.nasa.gov>
OK, here are a passel of patches for the geometric data types.
These add a "circle" data type, new operators and functions
for the existing data types, and change the default formats
for some of the existing types to make them consistant with
each other. Current formatting conventions (e.g. compatible
with v6.0 to allow dump/reload) are supported, but the new
conventions should be an improvement and we can eventually
drop the old conventions entirely.

For example, there are two kinds of paths (connected line segments),
open and closed, and the old format was

'(1,2,1,2,3,4)' for a closed path with two points (1,2) and (3,4)
'(0,2,1,2,3,4)' for an open path with two points (1,2) and (3,4)

Pretty arcane, huh? The new format for paths is

'((1,2),(3,4))' for a closed path with two points (1,2) and (3,4)
'[(1,2),(3,4)]' for an open path with two points (1,2) and (3,4)

For polygons, the old convention is

'(0,4,2,0,4,3)' for a triangle with points at (0,0),(4,4), and (2,3)

and the new convention is

'((0,0),(4,4),(2,3))' for a triangle with points at (0,0),(4,4), and (2,3)

Other data types which are also represented as lists of points
(e.g. boxes, line segments, and polygons) have similar representations
(they surround each point with parens).

For v6.1, any format which can be interpreted as the old style format
is decoded as such; we can remove that backwards compatibility but ugly
convention for v7.0. This will allow dump/reloads from v6.0.

These include some updates to the regression test files to change the test
for creating a data type from "circle" to "widget" to keep the test from
trashing the new builtin circle type.
1997-04-22 17:35:09 +00:00
Marc G. Fournier
cfe0d67dc1 Some slight changes to the Wisconsin Benchmark tests since postgres requires
a -D<datadir> option
1997-04-17 13:48:52 +00:00
Marc G. Fournier
fcf7d45b36 Get rid of the .sql files out of the Makefile
Pointed out by: afc@teri.superlink.net
1997-04-12 09:34:31 +00:00
Marc G. Fournier
b5183bf64b remove the old regression test files. have copies saved in my directory here,
but it gets rid of the temptation to modify the old source files :)
1997-04-09 08:48:14 +00:00
Marc G. Fournier
b30aa6ecb8 Slight mods to explain (or try to) the new regression tests 1997-04-08 19:34:58 +00:00
Marc G. Fournier
ee0a61ab62 Get rid of queries.source...its all in the sql directory.
regress.sh modified to get rid of queries.sql tests, as they are
performed vis sql/*.sql
1997-04-06 08:53:34 +00:00
Marc G. Fournier
e31cb4be3a More splits and cleanups...
Its starting to actually take shape and look as expected...
1997-04-06 08:29:57 +00:00
Marc G. Fournier
588ae64c44 More splits and cleanups... 1997-04-06 06:07:13 +00:00
Marc G. Fournier
23733026ee remove create.{source,sql} as they are now down in the 'sql' directory
partially split
1997-04-05 21:33:26 +00:00
Marc G. Fournier
1452327c66 Change Postgres95 to PostgreSQL
The whole file needs updating, but will work on that after finishing
with the splits
1997-04-05 21:28:46 +00:00
Marc G. Fournier
9c9e2dd4b5 More splits of the regression tests in order to make them more
user-friendly (and more useful)
1997-04-05 21:26:00 +00:00
Marc G. Fournier
aa51d0d185 Purge out tests/expected that are now in sql/expected subdirectories from
'master' file

Commit mods to regress.sh so that split out tests are run...look forward
to finding out how to do a proper redirect to continue visual cleanup :)
1997-04-05 11:58:40 +00:00
Marc G. Fournier
04688df668 Again, add more tests 1997-04-05 11:26:55 +00:00
Marc G. Fournier
7956e606d6 Add more expected.out results 1997-04-05 11:24:54 +00:00
Marc G. Fournier
d108a31082 There are the broken out 'sql' queries from queries.source
tests allows us to have a 'for...done' loop inside of regress.sh for
both doing the tests, and determining fail/ok results
1997-04-05 11:08:30 +00:00
Marc G. Fournier
9607e69c24 These are the broken down 'expected.output' files created so far 1997-04-05 11:06:04 +00:00
Marc G. Fournier
c7b40e6058 This commit represents a clean compile with the new templates under
FreeBSD

The Makefile(s) have all been cleaned up such that there is a single
LDFLAGS vs LD_ADD or LDADD or LDFLAGS or LDFLAGS_BE.  The Makefile(s)
should be alot more straightforward then they were before...and
consistent
1997-04-04 10:43:16 +00:00
Marc G. Fournier
791c075852 Date/Time updates from Thomas... 1997-03-14 23:34:16 +00:00
Bruce Momjian
34fd62c512 Remove case-sensitive identifiers. Thanks for Dan McGuirk for a reversal patch. 1997-03-02 01:03:44 +00:00
Bruce Momjian
872c708f8f Small regress cleanup. 1997-03-01 16:44:43 +00:00
Bruce Momjian
0f90c7a009 Rename GNUMakefile to GNUmakefile so gmake finds it. 1997-01-21 01:27:18 +00:00
Bryan Henderson
9010e0e686 Rename Makefile to GNUMakefile and add a "use GNU Make" Makefile so people
don't accidentally use non-GNU make.
1997-01-18 08:01:32 +00:00
Marc G. Fournier
1760f08616 Unapply a patch that wasn't a patch... 1997-01-16 18:05:12 +00:00
Marc G. Fournier
f8a41a0b91 This is one of those patches that obviously fixes something, just not
sure exactly what it is it fixes...
1997-01-16 16:11:09 +00:00
Bruce Momjian
abeaabef2e Restored original pg_type/pg_attribute defaults. Regression fixes. 1997-01-14 01:42:38 +00:00
Bryan Henderson
227015b08e Standardize all LDADD to LD_ADD. 1997-01-05 21:17:45 +00:00
Bruce Momjian
e981bcb0c3 Fix expected regression output. 1996-12-28 23:07:54 +00:00
Bruce Momjian
8cc2eb66ec Fixed errors in create statement. 1996-12-28 22:46:40 +00:00
Bruce Momjian
ea8b5196ff Small regression and doc patch 1996-12-13 02:39:00 +00:00
Bryan Henderson
33edbdb59b Remove include of libpq-fe.h. This file has nothing to do with libpq. 1996-12-09 01:24:53 +00:00
Bruce Momjian
58193362bd Reduce regression diffs 1996-12-02 14:17:59 +00:00
Bruce Momjian
5f9bdb7641 Reduce regression diff size with timezone changes and cleanup. 1996-12-02 06:31:20 +00:00
Bryan Henderson
81f5c669e9 This file has not been part of the regression test for many releases. 1996-11-19 02:57:10 +00:00
Bruce Momjian
317f375bb2 Rename SLSUFF to DLSUFFIX 1996-11-18 06:07:56 +00:00
Bruce Momjian
fdcf5ff79c Remove comments psql was putting in output, typo's.
psql now returns error from queries and errors files, so ignore return code.
1996-11-14 16:09:28 +00:00
Bryan Henderson
b20766ccc4 Eliminate MKDIR, srcdir, objdir. Centralize setting of LIBPQDIR. 1996-11-13 10:36:36 +00:00
Bryan Henderson
d7dd9295b7 End of the make file simplifications. 1996-11-12 11:43:32 +00:00
Marc G. Fournier
c8708c5f9b Fix for finding the include files 1996-11-12 11:16:44 +00:00
Bryan Henderson
b5499249e5 Quiet compiler warnings. 1996-11-12 11:09:13 +00:00
Marc G. Fournier
c7ce63e04c Add include file postgres.h 1996-11-11 16:33:12 +00:00
Bruce Momjian
5061c23ac2 Rename CDEBUG to COPT 1996-11-04 05:15:07 +00:00
Bruce Momjian
f59a46a8c8 Parser Overhaul 1996-10-30 02:02:41 +00:00
Bruce Momjian
f6792efcc7 Remove sytax errors from file. 1996-10-07 02:33:25 +00:00
Marc G. Fournier
ab57e09e1c Fixes:
Also, I think that an extra source of noise in the diff of regress.out and
expected.out is caused by not substituting the shared library file
extension in the regression.input file (much like the paths and the
usernames are sub'ed). This seems to be fixed with the following patches
to regression.input and the Makefile... If I'm off base here, please tell!

Submitted by:  Wayde Nie <niew@phoenix.cis.mcmaster.ca>
1996-08-06 16:51:35 +00:00
Marc G. Fournier
7d1402d071 Okay...*last* commit, now to create a release...
README file for regresssion tests from Dr. George
1996-08-02 01:24:00 +00:00
Marc G. Fournier
642668c31d Update to expected.input from Dr. George 1996-08-02 01:18:05 +00:00
Marc G. Fournier
a82aa45a4d An actual README file for the regression tests
Submitted by: Dr. George
1996-08-01 04:53:22 +00:00
Marc G. Fournier
ce48b4d5bd A newer expected.input file for the regression tests
Submitted by: Dr. Geoge
1996-08-01 04:51:49 +00:00
Marc G. Fournier
32a3858add corrects the output for a 'SELECT DISTINCT ON ...' at line 2900
submitted by: Dr_George_D_Detlefsen <drgeorge@ilt.com>
1996-07-27 02:06:10 +00:00
Marc G. Fournier
f45dfa6174 should always take mail headers out of Makefile files befor ecommitting :) 1996-07-26 20:15:40 +00:00
Marc G. Fournier
ba4b7f5021 regression Makefile, rev 2
Submitted by: Dr. George
1996-07-26 19:58:04 +00:00
Marc G. Fournier
9e0a8d4b26 improvements to regression testing
submitted by: dr. george
1996-07-25 19:56:59 +00:00
Marc G. Fournier
245686d43a modifications to regressoin tests 1996-07-23 03:19:34 +00:00
Marc G. Fournier
94215d51c8 Fixes:
The updating of array fields is broken in Postgres95-1.01, An array can
be only replaced with a new array but not have some elements modified.
This is caused by two bugs in the parser and in the array utilities.
Furthermore it is not possible to update array with a base type of
variable length.


- submitted by: Massimo Dal Zotto <dz@cs.unitn.it>
1996-07-20 07:59:41 +00:00
Marc G. Fournier
d31084e9d1 Postgres95 1.01 Distribution - Virgin Sources 1996-07-09 06:22:35 +00:00