]> granicus.if.org Git - postgresql/log
postgresql
24 years agoDocument recent changes in syntax, including examples.
Thomas G. Lockhart [Fri, 31 Mar 2000 03:20:17 +0000 (03:20 +0000)]
Document recent changes in syntax, including examples.

24 years agoGet rid of SetBufferWriteMode(), which was an accident waiting to happen.
Tom Lane [Fri, 31 Mar 2000 02:43:31 +0000 (02:43 +0000)]
Get rid of SetBufferWriteMode(), which was an accident waiting to happen.
In the event of an elog() while the mode was set to immediate write,
there was no way for it to be set back to the normal delayed write.
The mechanism was a waste of space and cycles anyway, since the only user
was varsup.c, which could perfectly well call FlushBuffer directly.
Now it does just that, and the notion of a write mode is gone.

24 years agoNew coding for SET provoked a 'var might be used uninitialized' warning
Tom Lane [Fri, 31 Mar 2000 02:11:03 +0000 (02:11 +0000)]
New coding for SET provoked a 'var might be used uninitialized' warning
from gcc.  Which wasn't actually a code bug, but I don't like warnings.

24 years agoUpdate make_mkid for mkid version 4.0.
Bruce Momjian [Fri, 31 Mar 2000 01:41:27 +0000 (01:41 +0000)]
Update make_mkid for mkid version 4.0.

24 years agoMake discussion of names clearer and more accurate.
Tom Lane [Thu, 30 Mar 2000 23:42:34 +0000 (23:42 +0000)]
Make discussion of names clearer and more accurate.

24 years agoRemove PL/perl language chapter, since it shows up in the User's Guide.
Thomas G. Lockhart [Thu, 30 Mar 2000 22:34:29 +0000 (22:34 +0000)]
Remove PL/perl language chapter, since it shows up in the User's Guide.

24 years agoAccumulated fixups.
Thomas G. Lockhart [Thu, 30 Mar 2000 22:22:41 +0000 (22:22 +0000)]
Accumulated fixups.
Add some chapters on new topics.
Change to referencing OASIS/Docbook v3.1 rather than Davenport/Docbook v3.0
Grepped for and fixed apparent tag mangling from emacs
 "Normalize" operation. Should be the last of those.

24 years agoRenamed from bug-reports.sgml. Not all problems are bugs ;)
Thomas G. Lockhart [Thu, 30 Mar 2000 22:19:47 +0000 (22:19 +0000)]
Renamed from bug-reports.sgml. Not all problems are bugs ;)

24 years agoWriteup from Tom Lane on how costs are estimated.
Thomas G. Lockhart [Thu, 30 Mar 2000 22:18:54 +0000 (22:18 +0000)]
Writeup from Tom Lane on how costs are estimated.

24 years agoHints on how to fill a database.
Thomas G. Lockhart [Thu, 30 Mar 2000 22:17:50 +0000 (22:17 +0000)]
Hints on how to fill a database.

24 years agoAdd reference to the original Postgres papers at a UCB web site.
Thomas G. Lockhart [Thu, 30 Mar 2000 22:17:16 +0000 (22:17 +0000)]
Add reference to the original Postgres papers at a UCB web site.

24 years agoSmall emacs fixup for catalogs.
Thomas G. Lockhart [Thu, 30 Mar 2000 22:14:47 +0000 (22:14 +0000)]
Small emacs fixup for catalogs.

24 years agoSplit off language-specific docs to their own chapters.
Thomas G. Lockhart [Thu, 30 Mar 2000 22:13:30 +0000 (22:13 +0000)]
Split off language-specific docs to their own chapters.
Add PL/perl docs from Mark Hollomon.
Put language-specific docs into the User's Guide, and move the rest
 to the Programmer's Guide.

24 years ago*** empty log message ***
Michael Meskes [Thu, 30 Mar 2000 11:41:46 +0000 (11:41 +0000)]
*** empty log message ***

24 years agoalpha-dec-osf host pattern must become alpha.*-dec-osf to match
Tom Lane [Thu, 30 Mar 2000 07:49:39 +0000 (07:49 +0000)]
alpha-dec-osf host pattern must become alpha.*-dec-osf to match
newer Alpha platforms.

24 years agoUpdate alternate float8 output files to match current float8.sql.
Tom Lane [Thu, 30 Mar 2000 07:46:00 +0000 (07:46 +0000)]
Update alternate float8 output files to match current float8.sql.

24 years agoUpdate numeric_big regress test for 7.0. This has apparently been
Tom Lane [Thu, 30 Mar 2000 07:13:20 +0000 (07:13 +0000)]
Update numeric_big regress test for 7.0.  This has apparently been
broken almost since the word go ... I guess no one ever ran it ...

24 years agoEnable more flexible syntax for the SET command. Now allows single floats,
Thomas G. Lockhart [Thu, 30 Mar 2000 06:02:36 +0000 (06:02 +0000)]
Enable more flexible syntax for the SET command. Now allows single floats,
 single integers, and lists of names, without surrounding them with quotes.
Remove all tokens which are defined as operators from ColID and ColLabel
 to avoid precedence confusion. Thanks to Tom Lane for catching this.

24 years agoMakefile should not pre-empt user's decision about whether
Tom Lane [Thu, 30 Mar 2000 05:57:30 +0000 (05:57 +0000)]
Makefile should not pre-empt user's decision about whether
to use -g ... especially not when this can cause real problems on some
platforms ...

24 years agoUnixware fix for new config.guess output,
Tom Lane [Thu, 30 Mar 2000 05:49:47 +0000 (05:49 +0000)]
Unixware fix for new config.guess output,
from Bill.Allie@mug.org.

24 years agoMake use of configure symbols for unportable constructs. Make
Tom Lane [Thu, 30 Mar 2000 05:30:42 +0000 (05:30 +0000)]
Make use of configure symbols for unportable constructs.  Make
inclusions of system headers more consistent.

24 years agoAutoconf.
Tom Lane [Thu, 30 Mar 2000 05:29:44 +0000 (05:29 +0000)]
Autoconf.

24 years agoAdd configure checks to see if 'using namespace std' and
Tom Lane [Thu, 30 Mar 2000 05:29:21 +0000 (05:29 +0000)]
Add configure checks to see if 'using namespace std' and
'#include <string>' work in the local C++ compiler.

24 years agoChange cross reference to CREATE AGGREGATE to a citation, since the
Thomas G. Lockhart [Thu, 30 Mar 2000 05:07:48 +0000 (05:07 +0000)]
Change cross reference to CREATE AGGREGATE to a citation, since the
 Programmer's Guide does not have access to the reference page.
Normalize markup.

24 years agoRemove extraneous semicolon.
Tom Lane [Thu, 30 Mar 2000 02:59:14 +0000 (02:59 +0000)]
Remove extraneous semicolon.

24 years agoReplace refs to v6.6 with v7.0.
Tom Lane [Thu, 30 Mar 2000 02:51:12 +0000 (02:51 +0000)]
Replace refs to v6.6 with v7.0.

24 years agoTweak indexscan cost estimation: round estimated # of tuples visited up
Tom Lane [Thu, 30 Mar 2000 00:53:30 +0000 (00:53 +0000)]
Tweak indexscan cost estimation: round estimated # of tuples visited up
to next integer.  Previously, if selectivity was small, we could compute
very tiny scan cost on the basis of estimating that only 0.001 tuple
would be fetched, which is silly.  This naturally led to some rather
silly plans...

24 years agoAdded latest config.guess and config.sub
Peter Eisentraut [Wed, 29 Mar 2000 16:12:31 +0000 (16:12 +0000)]
Added latest config.guess and config.sub

24 years agoChange rules for interpreting date/time input to disallow 1 and 3 character
Thomas G. Lockhart [Wed, 29 Mar 2000 03:57:18 +0000 (03:57 +0000)]
Change rules for interpreting date/time input to disallow 1 and 3 character
 years. Rejects dates like '0.085', which were accepted previously.

24 years agoChange rules for interpreting date/time input to disallow 1 and 3 character
Thomas G. Lockhart [Wed, 29 Mar 2000 03:57:11 +0000 (03:57 +0000)]
Change rules for interpreting date/time input to disallow 1 and 3 character
 years. Rejects dates like '0.085', which were accepted previously.
Minor mods of ODBC markup.

24 years agoFix markup for terminology.
Thomas G. Lockhart [Tue, 28 Mar 2000 14:35:27 +0000 (14:35 +0000)]
Fix markup for terminology.

24 years agoAdd mention of join syntax to release notes, and reformat a few lines.
Thomas G. Lockhart [Tue, 28 Mar 2000 14:35:13 +0000 (14:35 +0000)]
Add mention of join syntax to release notes, and reformat a few lines.
Update porting info. Still need a lot of platforms tested.
Fix small errors in markup.

24 years agoUpdate SGML catalog references to DocBook 3.1 on FreeBSD.
Thomas G. Lockhart [Tue, 28 Mar 2000 14:16:07 +0000 (14:16 +0000)]
Update SGML catalog references to DocBook 3.1 on FreeBSD.
Matches postgresql.org/hub.org environment.

24 years agoSmall improvements to user's guide description of arrays.
Tom Lane [Tue, 28 Mar 2000 03:39:50 +0000 (03:39 +0000)]
Small improvements to user's guide description of arrays.

24 years agoOops, missed some < and > that need to be &lt; and &gt; ...
Tom Lane [Tue, 28 Mar 2000 02:59:55 +0000 (02:59 +0000)]
Oops, missed some < and > that need to be &lt; and &gt; ...

24 years agoClean up major bogosity in description of creating a new index operator
Tom Lane [Tue, 28 Mar 2000 02:53:02 +0000 (02:53 +0000)]
Clean up major bogosity in description of creating a new index operator
class.  This chapter was apparently sewed together from several
inconsistent examples... and perhaps from old docs that no longer
apply at all.

24 years agoAdd a little to index operator class discussion.
Tom Lane [Tue, 28 Mar 2000 02:51:09 +0000 (02:51 +0000)]
Add a little to index operator class discussion.

24 years agoFix some bogosity in the tutorial examples.
Tom Lane [Tue, 28 Mar 2000 02:49:19 +0000 (02:49 +0000)]
Fix some bogosity in the tutorial examples.

24 years agoAllow compile to finish even if plperl fails, which it does now.
Bruce Momjian [Mon, 27 Mar 2000 22:39:13 +0000 (22:39 +0000)]
Allow compile to finish even if plperl fails, which it does now.

24 years agoFixed bug with repeated \e in psql (failed to clear buffers correctly)
Peter Eisentraut [Mon, 27 Mar 2000 21:11:37 +0000 (21:11 +0000)]
Fixed bug with repeated \e in psql (failed to clear buffers correctly)

24 years agoStart updating for the v7.0 release.
Thomas G. Lockhart [Mon, 27 Mar 2000 17:14:43 +0000 (17:14 +0000)]
Start updating for the v7.0 release.
Use "generic functions" for math and other routines.
Use SQL92 "type 'literal'" syntax rather than Postgres "'literal'::type".

24 years agoAllow full type names in CREATE FUNCTION arguments and return type.
Thomas G. Lockhart [Mon, 27 Mar 2000 17:12:06 +0000 (17:12 +0000)]
Allow full type names in CREATE FUNCTION arguments and return type.
Move CREATE FUNCTION/WITH clause to end of statement to get around
 shift/reduce conflicts with type names containing "WITH".
Add lots of tokens as allowed ColId's and/or ColLabel's,
 so this should be a complete set for the v7.0 release.

24 years agoFix up comments where had been uglified by the automated reformatter.
Thomas G. Lockhart [Mon, 27 Mar 2000 17:07:48 +0000 (17:07 +0000)]
Fix up comments where had been uglified by the automated reformatter.

24 years agoChange form of query which used "DISTINCT ON" to help support primary keys.
Thomas G. Lockhart [Mon, 27 Mar 2000 17:04:47 +0000 (17:04 +0000)]
Change form of query which used "DISTINCT ON" to help support primary keys.
We still have an internal limit in the ODBC code of 8 columns per key,
 but this should lay the groundwork for resolving that.
Includes reformulated query from Tom Lane.

24 years agoAdd html FAQ and FAQ_DEV sources
Bruce Momjian [Mon, 27 Mar 2000 16:07:59 +0000 (16:07 +0000)]
Add html FAQ and FAQ_DEV sources

24 years agoEnhance pg_ctl so that it prints error messages from postmaster
Tatsuo Ishii [Mon, 27 Mar 2000 02:12:03 +0000 (02:12 +0000)]
Enhance pg_ctl so that it prints error messages from postmaster
if it fails to start up it (this is only vaild if -w is given).

24 years agoUpdate obsolete statement that indexes can have only 7 columns.
Tom Lane [Sun, 26 Mar 2000 19:47:17 +0000 (19:47 +0000)]
Update obsolete statement that indexes can have only 7 columns.
Reorganize description of index features for more clarity.

24 years agoUpdate/improve documentation about creating aggregate functions.
Tom Lane [Sun, 26 Mar 2000 19:45:21 +0000 (19:45 +0000)]
Update/improve documentation about creating aggregate functions.

24 years agonodeAgg has always been willing to accept an aggregate with a finalFunc
Tom Lane [Sun, 26 Mar 2000 19:43:58 +0000 (19:43 +0000)]
nodeAgg has always been willing to accept an aggregate with a finalFunc
and only one transition state, but the CREATE AGGREGATE code rejected
this combination.

24 years agoUpdated user's guide to match new psql's output format
Peter Eisentraut [Sun, 26 Mar 2000 18:32:30 +0000 (18:32 +0000)]
Updated user's guide to match new psql's output format
Fixed bug in createdb/alternative location

24 years agoImprove descriptions of postmaster switches.
Tom Lane [Sun, 26 Mar 2000 07:04:54 +0000 (07:04 +0000)]
Improve descriptions of postmaster switches.

24 years agoRearrange steps in recommended install procedure to something more
Tom Lane [Sun, 26 Mar 2000 07:03:38 +0000 (07:03 +0000)]
Rearrange steps in recommended install procedure to something more
reasonable, ie configure and build first, then optionally run regress
tests using new parallel (non-installed) test method, and only then
backup and kill old installation.

24 years agoAdd description of new parallel regression testing method; update
Tom Lane [Sun, 26 Mar 2000 07:01:19 +0000 (07:01 +0000)]
Add description of new parallel regression testing method; update
procedure to cover running either test script; other minor improvements.

24 years agoUpdate descriptions of configure's options, and document how to specify
Tom Lane [Sun, 26 Mar 2000 06:59:31 +0000 (06:59 +0000)]
Update descriptions of configure's options, and document how to specify
multiple directories for --with-includes or --with-libraries.

24 years agoFix erroneous claim that 'postmaster -S' leaves the postmaster running
Tom Lane [Sun, 26 Mar 2000 06:58:17 +0000 (06:58 +0000)]
Fix erroneous claim that 'postmaster -S' leaves the postmaster running
in the foreground --- in fact, it auto-detaches.

24 years agoUpdate initdb flags.
Bruce Momjian [Sun, 26 Mar 2000 03:40:37 +0000 (03:40 +0000)]
Update initdb flags.

24 years agoChange resultmap:
Tatsuo Ishii [Sun, 26 Mar 2000 02:35:01 +0000 (02:35 +0000)]
Change resultmap:
powerpc-unknown-linux-gnu --> powerpc-unknown-linux-gnulibc1
this is because for new config.guess.

24 years agoNew platform specific geometry regression expected file for
Tatsuo Ishii [Sun, 26 Mar 2000 02:28:07 +0000 (02:28 +0000)]
New platform specific geometry regression expected file for
powerpc-linux-gnulibc1.

24 years agoRemove some results from int4-not-representable.out
Tatsuo Ishii [Sun, 26 Mar 2000 02:25:34 +0000 (02:25 +0000)]
Remove some results from int4-not-representable.out
This is due to the changes made to int4.sql.

< SELECT dsqrt(float8 '64') AS eight;
<  eight
< -------
<      8
< (1 row)
<
< SELECT |/float8 '64' AS eight;
<  eight
< -------
<      8
< (1 row)
<
< SELECT ||/float8 '27' AS three;
<  three
< -------
<      3
< (1 row)
<

24 years agoMake configure --help produce slightly more useful and consistently-
Tom Lane [Sun, 26 Mar 2000 01:29:25 +0000 (01:29 +0000)]
Make configure --help produce slightly more useful and consistently-
formatted descriptions of --with options.

24 years agoIn PQnotifies discussion, reference PQsocket as function needed to get
Tom Lane [Sun, 26 Mar 2000 01:00:17 +0000 (01:00 +0000)]
In PQnotifies discussion, reference PQsocket as function needed to get
file descriptor number for select().  (Suggestion from Ken Wright.)

24 years agoAttached is the regression diff for geometry, RedHat 6.1 on a Pentium
Bruce Momjian [Sun, 26 Mar 2000 00:18:57 +0000 (00:18 +0000)]
Attached is the regression diff for geometry, RedHat 6.1 on a Pentium
200 MMX. I was going through my e-mail, cleaning out my 1000+ message
inbox, and found this one.  Sorry.

--
Lamar Owen

24 years agoRemove bogus complexity from build/install of plperl. This stuff was
Tom Lane [Sat, 25 Mar 2000 19:26:49 +0000 (19:26 +0000)]
Remove bogus complexity from build/install of plperl.  This stuff was
apparently copied from the makefile for the perl5 interface module,
which needs it for reasons explained in src/interfaces/Makefile.
But none of those reasons apply to plperl.

24 years agoOld patch from Mark Hollomon to add plperl to createlang's repertoire.
Tom Lane [Sat, 25 Mar 2000 19:10:27 +0000 (19:10 +0000)]
Old patch from Mark Hollomon to add plperl to createlang's repertoire.
Seems to have slipped through the cracks.

24 years agoAnother fix for old shells.
Tom Lane [Sat, 25 Mar 2000 19:01:48 +0000 (19:01 +0000)]
Another fix for old shells.

24 years agoFix syntax error reported by old shells ("if ! command..." is a
Tom Lane [Sat, 25 Mar 2000 18:46:17 +0000 (18:46 +0000)]
Fix syntax error reported by old shells ("if ! command..." is a
neologism, apparently).

24 years agoMore >&1 cleanups
Bruce Momjian [Sat, 25 Mar 2000 14:44:42 +0000 (14:44 +0000)]
More >&1 cleanups

24 years agoMore changes of >& to 2>&1
Bruce Momjian [Sat, 25 Mar 2000 14:36:58 +0000 (14:36 +0000)]
More changes of >& to 2>&1

24 years agoRemove >& and make it 2>&1
Bruce Momjian [Sat, 25 Mar 2000 14:32:50 +0000 (14:32 +0000)]
Remove >& and make it 2>&1

24 years agoAdd POLLUTE=1 to perl Makefile.PL creations.
Bruce Momjian [Sat, 25 Mar 2000 14:25:31 +0000 (14:25 +0000)]
Add POLLUTE=1 to perl Makefile.PL creations.

24 years agotransformCreateStmt should put Ident nodes, not ColumnDef nodes, into
Tom Lane [Fri, 24 Mar 2000 23:34:19 +0000 (23:34 +0000)]
transformCreateStmt should put Ident nodes, not ColumnDef nodes, into
keys lists of Constraint nodes.  This eliminates a type pun that would
probably have caused trouble someday, and eliminates circular references
in the parsetree that were causing trouble now.
Also, change parser's uses of strcasecmp() to strcmp().  Since scan.l
has downcased any unquoted identifier, it is never correct to check an
identifier with strcasecmp() in the parser.  For example,
CREATE TABLE FOO (f1 int, UNIQUE("F1"));
was accepted, which is wrong, and xlateSqlFunc did more than it should:
select datetime();
ERROR:  Function 'timestamp()' does not exist
(good)
select "DateTime"();
ERROR:  Function 'timestamp()' does not exist
(bad)

24 years agoImprove comment.
Tom Lane [Fri, 24 Mar 2000 23:26:45 +0000 (23:26 +0000)]
Improve comment.

24 years agoSave a few cycles in simple cases: no need to call cost_sort() when there
Tom Lane [Fri, 24 Mar 2000 21:40:43 +0000 (21:40 +0000)]
Save a few cycles in simple cases: no need to call cost_sort() when there
is no presorted path to compare with.

24 years agoRemove -O2 for aix.
Bruce Momjian [Fri, 24 Mar 2000 14:39:07 +0000 (14:39 +0000)]
Remove -O2 for aix.

24 years agoMove LOCK terms down.
Bruce Momjian [Fri, 24 Mar 2000 03:57:06 +0000 (03:57 +0000)]
Move LOCK terms down.

24 years agooutfuncs.c was missing a print routine for Material plan nodes, leading
Tom Lane [Fri, 24 Mar 2000 02:58:25 +0000 (02:58 +0000)]
outfuncs.c was missing a print routine for Material plan nodes, leading
to trouble when trying to EXPLAIN VERBOSE a plan containing one.

24 years agoRename bytea functions to not have upper-case letters in their names.
Tom Lane [Fri, 24 Mar 2000 02:41:46 +0000 (02:41 +0000)]
Rename bytea functions to not have upper-case letters in their names.
Clean up grotty coding in them, too.  AFAICS from the CVS logs, these
have been broken since Postgres95, so I'm not going to insist on an
initdb to fix them now...

24 years agoFold PQsetenv working state into PGconn, rather than trying to maintain
Tom Lane [Fri, 24 Mar 2000 01:39:55 +0000 (01:39 +0000)]
Fold PQsetenv working state into PGconn, rather than trying to maintain
it in a separate object.  There's no value in keeping the state separate,
and it creates dangling-pointer problems.  Also, remove PQsetenv routines
from public API, until and unless they are redesigned to have a safer
interface.  Since they were never part of the documented API before 7.0,
it's unlikely that anyone is calling them.

24 years agoUpdate multi-byte support README
Tatsuo Ishii [Fri, 24 Mar 2000 01:37:11 +0000 (01:37 +0000)]
Update multi-byte support README

24 years agoUpdate HISTORY
Bruce Momjian [Fri, 24 Mar 2000 01:20:09 +0000 (01:20 +0000)]
Update HISTORY

24 years agoA little further tweaking of the range-query selectivity logic:
Tom Lane [Thu, 23 Mar 2000 23:35:47 +0000 (23:35 +0000)]
A little further tweaking of the range-query selectivity logic:
to avoid undue sensitivity to roundoff error, believe that a zero
or slightly negative range estimate should represent a small
positive selectivity, rather than falling back on a generic default
estimate.

24 years ago>> 5. empty define that results in an empty but terminated line ( ; )
Bruce Momjian [Thu, 23 Mar 2000 23:16:49 +0000 (23:16 +0000)]
>> 5. empty define that results in an empty but terminated line ( ; )
easy (maybe dumb) fix for 5 in attachment define.patch

greetings, Andreas

24 years agoBack out // compiler flag.
Bruce Momjian [Thu, 23 Mar 2000 22:25:36 +0000 (22:25 +0000)]
Back out // compiler flag.

24 years agoHmm, absolute pathnames for the copy makes sense. I'll whip up that
Bruce Momjian [Thu, 23 Mar 2000 21:38:58 +0000 (21:38 +0000)]
Hmm, absolute pathnames for the copy makes sense. I'll whip up that
patch in a second. Should be sufficent to just make sure the first
character is a '/', right?

Ross J. Reedstrom

24 years agoSome points for portability improvements:
Bruce Momjian [Thu, 23 Mar 2000 17:27:36 +0000 (17:27 +0000)]
Some points for portability improvements:

1. C++ style comments in C source for ecpg ( // comment )
2. compiler finds wrong include file extern.h in ecpg/lib/descriptor.c
from
include path instead of workdir (rename it ?)
3. fe-connect getsockopt takes a socklen_t as fifth arg not int (use
SOCKET_SIZE_TYPE instead)
4. char vs unsigned char in psql calls to libpq
5. empty define that results in an empty but terminated line ( ; )

Now for all but point 3 I can supply changes to the
compiler flags, to make the compiler less pedantic.
Or is someone interested in the complications ?

in the meantime can someone apply the attached patch ?

Andreas

24 years agoUpdate history/sgml.
Bruce Momjian [Thu, 23 Mar 2000 15:09:56 +0000 (15:09 +0000)]
Update history/sgml.

24 years agoPlease apply the attached patch to interfaces/libpq/libpq-fe.h. This would
Bruce Momjian [Thu, 23 Mar 2000 15:00:11 +0000 (15:00 +0000)]
Please apply the attached patch to interfaces/libpq/libpq-fe.h. This would
allow to write applications which do not have a link to postgres_ext.h in
their source directory.

Andreas Kardos

24 years ago*** empty log message ***
Michael Meskes [Thu, 23 Mar 2000 07:53:48 +0000 (07:53 +0000)]
*** empty log message ***

24 years agosubselect regress test was kind of silly; it claimed to test correlation
Tom Lane [Thu, 23 Mar 2000 07:42:13 +0000 (07:42 +0000)]
subselect regress test was kind of silly; it claimed to test correlation
cases but actually did no such thing.  Make it test some more cases than
before (including things that didn't work in 6.5).

24 years agoFloat-to-int conversion functions should return NULL when given NULL
Tom Lane [Thu, 23 Mar 2000 07:40:00 +0000 (07:40 +0000)]
Float-to-int conversion functions should return NULL when given NULL
input, not throw a gratuitous elog().

24 years agoRemove no-longer-necessary restriction against uplevel correlation vars
Tom Lane [Thu, 23 Mar 2000 07:38:30 +0000 (07:38 +0000)]
Remove no-longer-necessary restriction against uplevel correlation vars
outside WHERE clause.  Fix a couple of places that didn't handle uplevel
refs cleanly.

24 years agoHack parse_coerce so it won't try to constant-fold the dummy Const
Tom Lane [Thu, 23 Mar 2000 07:36:03 +0000 (07:36 +0000)]
Hack parse_coerce so it won't try to constant-fold the dummy Const
nodes introduced by make_subplan().  It'd be better if we used a
different node type for subplan result placeholders, but for now...

24 years agoExecSubPlan needs to be able to cope with RelabelType nodes atop the
Tom Lane [Thu, 23 Mar 2000 07:32:58 +0000 (07:32 +0000)]
ExecSubPlan needs to be able to cope with RelabelType nodes atop the
Const placeholder nodes for subplan result values.

24 years agoUpdate TODO list.
Bruce Momjian [Thu, 23 Mar 2000 06:35:58 +0000 (06:35 +0000)]
Update TODO list.

24 years agoUpdate HISTORY file for 7.0.
Bruce Momjian [Thu, 23 Mar 2000 06:30:58 +0000 (06:30 +0000)]
Update HISTORY file for 7.0.

24 years agoPrepare for 7.0 release
Tatsuo Ishii [Thu, 23 Mar 2000 02:04:07 +0000 (02:04 +0000)]
Prepare for 7.0 release

24 years agoIf we cannot get a real estimate for the selectivity of a range query,
Tom Lane [Thu, 23 Mar 2000 00:58:36 +0000 (00:58 +0000)]
If we cannot get a real estimate for the selectivity of a range query,
use a default value that's fairly small.  We were generating a result
of about 0.1, but I think 0.01 is probably better --- want to encourage
use of an indexscan in this situation.

24 years agoImprove selectivity estimation involving string constants: pay attention
Tom Lane [Thu, 23 Mar 2000 00:55:42 +0000 (00:55 +0000)]
Improve selectivity estimation involving string constants: pay attention
to more than one character, and try to do the right thing in non-ASCII
locales.

24 years agoRepair logic flaw in cost estimator: cost_nestloop() was estimating CPU
Tom Lane [Wed, 22 Mar 2000 22:08:35 +0000 (22:08 +0000)]
Repair logic flaw in cost estimator: cost_nestloop() was estimating CPU
costs using the inner path's parent->rows count as the number of tuples
processed per inner scan iteration.  This is wrong when we are using an
inner indexscan with indexquals based on join clauses, because the rows
count in a Relation node reflects the selectivity of the restriction
clauses for that rel only.  Upshot was that if join clause was very
selective, we'd drastically overestimate the true cost of the join.
Fix is to calculate correct output-rows estimate for an inner indexscan
when the IndexPath node is created and save it in the path node.
Change of path node doesn't require initdb, since path nodes don't
appear in saved rules.

24 years agoUpdate pg_dumpall again.
Bruce Momjian [Wed, 22 Mar 2000 05:25:06 +0000 (05:25 +0000)]
Update pg_dumpall again.