OSDN Git Service

pg-rex/syncrep.git
24 years agoSince it has been confirmed working on the bugs list, please apply the
Bruce Momjian [Thu, 16 Mar 2000 15:35:34 +0000 (15:35 +0000)]
Since it has been confirmed working on the bugs list, please apply the
attached patch.

Andreas Kardos

24 years agolibpq++ Makefile uses -DDEBUG to turn on debugging trace to
Bruce Momjian [Thu, 16 Mar 2000 15:34:36 +0000 (15:34 +0000)]
libpq++ Makefile uses -DDEBUG to turn on debugging trace to
/tmp/trace.out.
However, elog.h uses DEBUG as a log-level flag.  As a result, tracing is
turned on even if the libpq++.so is built with DEBUG commented out in
the Makefile.

This patch changes libpq++ to use DEBUGFILE instead (which is not
defined anywhere else).

Oliver Elphick

24 years agoFix typo (introduced by xemacs markup normalization) in the syntax summary.
Thomas G. Lockhart [Thu, 16 Mar 2000 14:39:30 +0000 (14:39 +0000)]
Fix typo (introduced by xemacs markup normalization) in the syntax summary.

24 years agoSupport full POSIX-style time zone: EST+3, PST-3, etc.
Thomas G. Lockhart [Thu, 16 Mar 2000 14:38:42 +0000 (14:38 +0000)]
Support full POSIX-style time zone: EST+3, PST-3, etc.
We probably support a superset of the spec, but I don't have the spec
 to confirm this.
Update regression tests to include tests for this format.

24 years agoSupport full POSIX-style time zone: EST+3, PST-3, etc.
Thomas G. Lockhart [Thu, 16 Mar 2000 14:38:31 +0000 (14:38 +0000)]
Support full POSIX-style time zone: EST+3, PST-3, etc.
We probably support a superset of the spec, but I don't have the spec
 to confirm this.
Update regression tests to include tests for this format.
Update geometry.out with results from Linux RH 5.2 system
(for last decimal place).

24 years agoSupport full POSIX-style time zone: EST+3, PST-3, etc.
Thomas G. Lockhart [Thu, 16 Mar 2000 14:37:33 +0000 (14:37 +0000)]
Support full POSIX-style time zone: EST+3, PST-3, etc.
We probably support a superset of the spec, but I don't have the spec
 to confirm this.
Update regression tests to include tests for this format.
Fix single-space typo in printed message in regress.sh.

24 years agoFixes for char_length() change.
Tatsuo Ishii [Thu, 16 Mar 2000 11:55:43 +0000 (11:55 +0000)]
Fixes for char_length() change.

24 years agoFixes for char_length() changes.
Tatsuo Ishii [Thu, 16 Mar 2000 11:53:16 +0000 (11:53 +0000)]
Fixes for char_length() changes.

24 years agoTurns out that Mazurkiewicz's gripe about 'function inheritance' is
Tom Lane [Thu, 16 Mar 2000 06:35:07 +0000 (06:35 +0000)]
Turns out that Mazurkiewicz's gripe about 'function inheritance' is
actually a type-coercion problem.  If you have a function defined on
class A, and class B inherits from A, then the function ought to work
on class B as well --- but coerce_type didn't know that.  Now it does.

24 years agoFix for char_length() changes
Tatsuo Ishii [Thu, 16 Mar 2000 05:07:21 +0000 (05:07 +0000)]
Fix for char_length() changes

24 years agoFix some (more) problems with subselects in rules. Rewriter failed to
Tom Lane [Thu, 16 Mar 2000 03:23:18 +0000 (03:23 +0000)]
Fix some (more) problems with subselects in rules.  Rewriter failed to
mark query as having subselects if a subselect was added from a rule
WHERE condition (as opposed to a rule action).  Also, fix adjustment
of varlevelsup so that it actually has some prospect of working when
inserting an expression containing a subselect into a subquery.

24 years ago Hi,
Bruce Momjian [Thu, 16 Mar 2000 01:35:41 +0000 (01:35 +0000)]
 Hi,

 small changes in formatting.c code (better memory usage ...etc.) and
better
to_char's cache (will fastly for more to_char()s in one query).

(It is probably end of to_char() development in 7.0 cycle.)

                                                Karel

24 years agoUpdate comment obsoleted by Thomas's latest fixes.
Tom Lane [Wed, 15 Mar 2000 23:42:14 +0000 (23:42 +0000)]
Update comment obsoleted by Thomas's latest fixes.

24 years agoTweak GROUP BY so that it will still accept result-column names, but only
Tom Lane [Wed, 15 Mar 2000 23:31:19 +0000 (23:31 +0000)]
Tweak GROUP BY so that it will still accept result-column names, but only
after trying to resolve the item as an input-column name.  This allows us
to be compliant with the SQL92 spec for queries that fall within the spec,
while still accepting the same out-of-spec queries as 6.5 did.  You'll only
lose if there is an output column name that is the same as an input
column name, but doesn't refer to the same value.  7.0 will interpret
such a GROUP BY spec differently than 6.5 did.  No way around that, because
6.5 was clearly not spec compliant.

24 years ago*** empty log message ***
Michael Meskes [Wed, 15 Mar 2000 19:09:10 +0000 (19:09 +0000)]
*** empty log message ***

24 years agoFix busted TRANSLATE() code --- it coredumped due to pfree()'ing the
Tom Lane [Wed, 15 Mar 2000 17:24:18 +0000 (17:24 +0000)]
Fix busted TRANSLATE() code --- it coredumped due to pfree()'ing the
wrong pointer.

24 years agoFix " to ' on lobj docs.
Bruce Momjian [Wed, 15 Mar 2000 17:07:41 +0000 (17:07 +0000)]
Fix " to ' on lobj docs.

24 years agoRemove another incorrect UserAbortTransactionBlock() call.
Tom Lane [Wed, 15 Mar 2000 07:02:56 +0000 (07:02 +0000)]
Remove another incorrect UserAbortTransactionBlock() call.

24 years agoRemove gratuitous and incorrect begin/commit transaction calls in
Tom Lane [Wed, 15 Mar 2000 06:50:51 +0000 (06:50 +0000)]
Remove gratuitous and incorrect begin/commit transaction calls in
CREATE DB/DROP DB.  If you didn't think they were wrong, try what
happens when you compile with -DCLOBBER_FREED_MEMORY --- database
name displayed in error messages is trashed, because transaction
abort freed it.  Also, remove trailing periods in error messages,
per our prevailing style.

24 years agoFix a couple of missed changes in expected results.
Tom Lane [Wed, 15 Mar 2000 06:24:58 +0000 (06:24 +0000)]
Fix a couple of missed changes in expected results.

24 years agoAdd 'datetime' -> 'timestamp' conversion to xlateSqlFunc() to ease
Tom Lane [Wed, 15 Mar 2000 05:31:55 +0000 (05:31 +0000)]
Add 'datetime' -> 'timestamp' conversion to xlateSqlFunc() to ease
the pain of updating apps to 7.0.  Should we also translate some of
the 'datetime_foo' functions that exist in 6.* ?

24 years agoRepair unintentional damage to MULTIBYTE code.
Tom Lane [Tue, 14 Mar 2000 23:59:23 +0000 (23:59 +0000)]
Repair unintentional damage to MULTIBYTE code.

24 years agoCache fmgr lookup data for index's getnext() function in IndexScanDesc,
Tom Lane [Tue, 14 Mar 2000 23:52:01 +0000 (23:52 +0000)]
Cache fmgr lookup data for index's getnext() function in IndexScanDesc,
so that the fmgr lookup only has to happen once per index scan and not
once per tuple.  Seems to save 5% or so of CPU time for an indexscan.

24 years agoImplement column aliases on views "CREATE VIEW name (collist)".
Thomas G. Lockhart [Tue, 14 Mar 2000 23:06:59 +0000 (23:06 +0000)]
Implement column aliases on views "CREATE VIEW name (collist)".
Implement TIME WITH TIME ZONE type (timetz internal type).
Remap length() for character strings to CHAR_LENGTH() for SQL92
 and to remove the ambiguity with geometric length() functions.
Keep length() for character strings for backward compatibility.
Shrink stored views by removing internal column name list from visible rte.
Implement min(), max() for time and timetz data types.
Implement conversion of TIME to INTERVAL.
Implement abs(), mod(), fac() for the int8 data type.
Rename some math functions to generic names:
 round(), sqrt(), cbrt(), pow(), etc.
Rename NUMERIC power() function to pow().
Fix int2 factorial to calculate result in int4.
Enhance the Oracle compatibility function translate() to work with string
 arguments (from Edwin Ramirez).
Modify pg_proc system table to remove OID holes.

24 years agoWrite up new TIME WITH TIME ZONE type.
Thomas G. Lockhart [Tue, 14 Mar 2000 22:52:53 +0000 (22:52 +0000)]
Write up new TIME WITH TIME ZONE type.

24 years agoMarginal performance improvement in LockBuffer --- calculate address
Tom Lane [Tue, 14 Mar 2000 22:46:27 +0000 (22:46 +0000)]
Marginal performance improvement in LockBuffer --- calculate address
of BufferLocks[] entry just once.  Seems to save 10% or so of the
routine's runtime, which'd not be worth worrying about if it weren't
such a hotspot.

24 years ago> I have improved the System V semaphore emulation of the QNX4 port.
Bruce Momjian [Tue, 14 Mar 2000 18:12:06 +0000 (18:12 +0000)]
> I have improved the System V semaphore emulation of the QNX4 port.
Please
> apply the attached patch to
>
> backend/port/qnx4
>
> Andreas Kardos
>

24 years ago> To make PostgreSQL compilable on Digital Unix I had to modify the
Bruce Momjian [Tue, 14 Mar 2000 16:00:22 +0000 (16:00 +0000)]
> To make PostgreSQL compilable on Digital Unix I had to modify the
alpha_cc
> template file. Patch attached.
>
> Andreas Kardos
>

24 years ago> Here is an extension of the regression test suite for Digital Unix
Bruce Momjian [Tue, 14 Mar 2000 15:59:39 +0000 (15:59 +0000)]
> Here is an extension of the regression test suite for Digital Unix
(Alpha).
>
> Andreas Kardos

24 years ago> Here is an extension of the regression test suite for Digital Unix
Bruce Momjian [Tue, 14 Mar 2000 15:55:54 +0000 (15:55 +0000)]
> Here is an extension of the regression test suite for Digital Unix
(Alpha).
>

24 years ago> The snprintf stuff in interfaces/ecpg/preproc/Makefile.in is broken.
Bruce Momjian [Tue, 14 Mar 2000 15:55:17 +0000 (15:55 +0000)]
> The snprintf stuff in interfaces/ecpg/preproc/Makefile.in is broken.
Please
> apply the attached patch.
>
> Andreas Kardos
>
>

24 years agoDetect postmaster being ready by calling psql -l rathern than
Tatsuo Ishii [Tue, 14 Mar 2000 08:34:47 +0000 (08:34 +0000)]
Detect postmaster being ready by calling psql -l rathern than
checking postmaster.pid. It's not enough to check the existence
of postmaster.pid since DB recovery might be running.

24 years agoFix some bogosities in the code that deals with estimating the fraction
Tom Lane [Tue, 14 Mar 2000 02:23:15 +0000 (02:23 +0000)]
Fix some bogosities in the code that deals with estimating the fraction
of tuples we are going to retrieve from a sub-SELECT.  Must have been
half asleep when I did this code the first time :-(

24 years agoFixed deficiency where an unterminated (no semicolon) command at end of
Peter Eisentraut [Mon, 13 Mar 2000 13:46:32 +0000 (13:46 +0000)]
Fixed deficiency where an unterminated (no semicolon) command at end of
psql script would be dropped silently.

24 years agoExtend numeric_round and numeric_trunc to accept negative scale inputs
Tom Lane [Mon, 13 Mar 2000 02:31:13 +0000 (02:31 +0000)]
Extend numeric_round and numeric_trunc to accept negative scale inputs
(ie, allow rounding to occur at a digit position left of the decimal
point).  Apparently this is how Oracle handles it, and there are
precedents in other programming languages as well.

24 years agoRemove unnecessary limitations on lengths of bpchar and varchar constants.
Tom Lane [Mon, 13 Mar 2000 01:54:07 +0000 (01:54 +0000)]
Remove unnecessary limitations on lengths of bpchar and varchar constants.
Since we detect oversize tuples elsewhere, I see no reason not to allow
string constants that are 'too long' --- after all, they might never get
stored in a tuple at all.

24 years agoPerformance improvement for lexing long strings: increase flex's
Tom Lane [Mon, 13 Mar 2000 01:52:06 +0000 (01:52 +0000)]
Performance improvement for lexing long strings: increase flex's
YY_READ_BUF_SIZE, which turns out to have nothing to do with buffer size.
It's just a totally arbitrary upper limit on how much data myinput() is
asked for at one time.

24 years agoSomehow, the variant NATIONAL CHAR [ VARYING ] was missing from the
Tom Lane [Sun, 12 Mar 2000 20:09:41 +0000 (20:09 +0000)]
Somehow, the variant NATIONAL CHAR [ VARYING ] was missing from the
set of SQL-standard type names that we accept.

24 years agoFix performance bug in constant-expression simplifier. After finding
Tom Lane [Sun, 12 Mar 2000 19:32:06 +0000 (19:32 +0000)]
Fix performance bug in constant-expression simplifier.  After finding
that the inputs to a given operator can be recursively simplified to
constants, it was evaluating the operator using the op's *original*
(unsimplified) arg list, so that any subexpressions had to be evaluated
again.  A constant subexpression at depth N got evaluated N times.
Probably not very important in practical situations, but it made us look
real slow in MySQL's 'crashme' test...

24 years agoFix performance problem in fireRIRonSubselect: with nested subqueries,
Tom Lane [Sun, 12 Mar 2000 18:57:05 +0000 (18:57 +0000)]
Fix performance problem in fireRIRonSubselect: with nested subqueries,
fireRIRonSubselect was invoked twice at each subselect, leading to an
exponential amount of wasted effort.

24 years agoClean up grammar's handling of NULL in expressions: a_expr_or_null is
Tom Lane [Sun, 12 Mar 2000 00:39:52 +0000 (00:39 +0000)]
Clean up grammar's handling of NULL in expressions: a_expr_or_null is
gone, replaced by plain a_expr.  The few places where we needed to
distinguish NULL from a_expr are now handled by tests inside the actions
rather than by separate productions.  This allows us to accept queries
like 'SELECT 1 + NULL' without requiring parentheses around the NULL.

24 years agoFurther tweaking of logic that decides when to materialize an uncorrelated
Tom Lane [Sat, 11 Mar 2000 23:53:41 +0000 (23:53 +0000)]
Further tweaking of logic that decides when to materialize an uncorrelated
subplan: do it if subplan has subplans itself, and always do it if the
subplan is an indexscan.  (I originally set it to materialize an indexscan
only if the indexqual is fairly selective, but I dunno what I was
thinking ... an unselective indexscan is still expensive ...)

24 years agoMake TypeCategory think that NAME is a member of type
Tom Lane [Sat, 11 Mar 2000 23:19:50 +0000 (23:19 +0000)]
Make TypeCategory think that NAME is a member of type
category STRING.  Also, if UNKNOWNOID is passed in, return UNKNOWN_TYPE
not USER_TYPE.

24 years agoFurther fixes for bogus list-slinging, scribbling on input, etc in type
Tom Lane [Sat, 11 Mar 2000 23:17:47 +0000 (23:17 +0000)]
Further fixes for bogus list-slinging, scribbling on input, etc in type
coercion code.  I'm beginning to wonder why we have separate candidate
selection routines for functions, operators, and aggregates --- shouldn't
this code all be unified?  But meanwhile,
SELECT 'a' LIKE 'a';
finally works; the code for dealing with unknown input types for operators
was pretty busted.

24 years agoKarel Zakr's revised patch to fix psql prompt for local host connections.
Peter Eisentraut [Sat, 11 Mar 2000 13:56:24 +0000 (13:56 +0000)]
Karel Zakr's revised patch to fix psql prompt for local host connections.

24 years agoexec_simple_check_plan() must not allow a plan having initPlans or
Tom Lane [Sat, 11 Mar 2000 06:19:00 +0000 (06:19 +0000)]
exec_simple_check_plan() must not allow a plan having initPlans or
subPlans to be considered 'simple'.  This fixes reported problem with
'return exists (select 1 from foo);' in plpgsql function.

24 years agoFinish cleaning up backend's handling of /* ... */ and -- comments,
Tom Lane [Sat, 11 Mar 2000 05:14:06 +0000 (05:14 +0000)]
Finish cleaning up backend's handling of /* ... */ and -- comments,
per pghackers discussion around 20-Feb.  Also add specific error messages
for unterminated comments and unterminated quoted strings.  These things
are nonissues for input coming from psql, but they do matter for input
coming from other front ends.

24 years agoUpdate libpq documentation for PQconndefaults() change. Add section
Tom Lane [Sat, 11 Mar 2000 03:09:28 +0000 (03:09 +0000)]
Update libpq documentation for PQconndefaults() change.  Add section
about thread-safeness of the library.

24 years agoChange PQconndefaults() to return a malloc'd array, instead of a static
Tom Lane [Sat, 11 Mar 2000 03:08:37 +0000 (03:08 +0000)]
Change PQconndefaults() to return a malloc'd array, instead of a static
array.  This allows processing of conninfo strings to be made thread-safe,
at the cost of a small memory leak in applications that use
PQconndefaults() and are not updated to free the returned array via
the new PQconninfoFree() function.  But PQconndefaults() is probably not
used very much, so this seems like a good compromise.

24 years agoUpdate perl5's self-test for changed spelling of connection failure
Tom Lane [Sat, 11 Mar 2000 02:57:24 +0000 (02:57 +0000)]
Update perl5's self-test for changed spelling of connection failure
error message.

24 years agoOkay, this time I *really* added the bug reporting guidelines.
Peter Eisentraut [Fri, 10 Mar 2000 22:32:59 +0000 (22:32 +0000)]
Okay, this time I *really* added the bug reporting guidelines.

24 years agomake sure that cvslog is workign right ... no changes but to remove a blank
Marc G. Fournier [Fri, 10 Mar 2000 21:46:27 +0000 (21:46 +0000)]
make sure that cvslog is workign right ... no changes but to remove a blank
line

24 years ago*** empty log message ***
Michael Meskes [Fri, 10 Mar 2000 06:48:46 +0000 (06:48 +0000)]
*** empty log message ***

24 years agoUpdate TODO list.
Bruce Momjian [Thu, 9 Mar 2000 23:22:18 +0000 (23:22 +0000)]
Update TODO list.

24 years agoRemove SHOW after datestyle reset.
Bruce Momjian [Thu, 9 Mar 2000 17:39:34 +0000 (17:39 +0000)]
Remove SHOW after datestyle reset.

24 years agoFix for bsdi 4.1 shared libraries.
Bruce Momjian [Thu, 9 Mar 2000 17:07:32 +0000 (17:07 +0000)]
Fix for bsdi 4.1 shared libraries.

24 years agoAdded bug reporting guidelines
Peter Eisentraut [Thu, 9 Mar 2000 12:00:08 +0000 (12:00 +0000)]
Added bug reporting guidelines
Some corrections in installation procedure

24 years ago*** empty log message ***
Michael Meskes [Thu, 9 Mar 2000 09:17:16 +0000 (09:17 +0000)]
*** empty log message ***

24 years agoRedo permissions-checking code so that it does the right thing at APPEND
Tom Lane [Thu, 9 Mar 2000 05:15:33 +0000 (05:15 +0000)]
Redo permissions-checking code so that it does the right thing at APPEND
nodes.  The former version failed to check permissions of relations that
were referenced in second and later clauses of UNIONs, and it did not
check permissions of tables referenced via inheritance.

24 years agoTrial implementation of ALTER DROP COLUMN.
Hiroshi Inoue [Thu, 9 Mar 2000 05:00:26 +0000 (05:00 +0000)]
Trial implementation of ALTER DROP COLUMN.
They are #ifdef'd.
Add -D_DROP_COLUMN_HACK__ compile option
to evaluate it.

24 years agoExtend #ifdef CLOBBER_FREED_MEMORY debugging option so that memory
Tom Lane [Wed, 8 Mar 2000 23:42:58 +0000 (23:42 +0000)]
Extend #ifdef CLOBBER_FREED_MEMORY debugging option so that memory
freed wholesale by AllocSetReset() is overwritten too.

24 years agoRepair access-to-already-freed-memory error recently introduced into
Tom Lane [Wed, 8 Mar 2000 23:41:00 +0000 (23:41 +0000)]
Repair access-to-already-freed-memory error recently introduced into
VACUUM.

24 years agoFix ==-instead-of-= typo that gcc does its level best to point out.
Tom Lane [Wed, 8 Mar 2000 22:03:12 +0000 (22:03 +0000)]
Fix ==-instead-of-= typo that gcc does its level best to point out.
Isn't anybody paying attention to warnings around here?

24 years agoClean up gmake warning caused by recent NetBSD patch. <grumble>
Tom Lane [Wed, 8 Mar 2000 22:00:19 +0000 (22:00 +0000)]
Clean up gmake warning caused by recent NetBSD patch.  <grumble>

24 years agoHi,
Bruce Momjian [Wed, 8 Mar 2000 19:36:19 +0000 (19:36 +0000)]
Hi,

The regression test script runcheck.sh doesn't seem able to
handle the blank line on the end of the resultmap file.

Here's a patch to remove it!!

Keith.

24 years agoI've made a diff against the 7.0beta1 tree that accomplishes several things:
Bruce Momjian [Wed, 8 Mar 2000 01:58:46 +0000 (01:58 +0000)]
I've made a diff against the 7.0beta1 tree that accomplishes several things:

        1) adds NetBSD shared lib support on both ELF and a.out platforms

        2) replaces "-L$(LIBPQDIR) -lpq" with "$(LIBPQ)" defined in
           Makefile.global.  This makes it much easier to build stuff in
           the source tree after you've already installed the libraries.

        3) adds TEMPLATEDIR in Makefile.global that indicates where the
           database templates are stored.  This separates the template files
           from real libraries that are installed in $(LIBDIR).
        4) changes include order of <readline/readline.h> and <readline.h>.
           The latest GNU readline installs its headers under a readline
           subdirectory.

In addition to applying the patch below the following files need to be copied:

        backend/port/dynloader:
                bsd.h -> netbsd.h
                bsd.c -> netbsd.c
        include/port:
                bsd.h -> netbsd.h
        makefiles:
                Makefile.bsd -> Makefile.netbsd

It would be great to see this incorporated into the source tree before
the 7.0 release is cut.

        Thanks!

     -- Johnny C. Lam <lamj@stat.cmu.edu>

24 years agoBruce and all:
Bruce Momjian [Wed, 8 Mar 2000 01:46:47 +0000 (01:46 +0000)]
Bruce and all:
Here's a patch to fix the " '.' not allowed in db path" problem I ran into.
I removed '.' from the set of illegial characters, but added backtick. I also
included an explicit test for attempting include a reference to a parent dir.

How that?

Ross

24 years agoReversed out inet patch.
Bruce Momjian [Wed, 8 Mar 2000 01:44:37 +0000 (01:44 +0000)]
Reversed out inet patch.

24 years ago Hi Peter,
Bruce Momjian [Wed, 8 Mar 2000 01:38:59 +0000 (01:38 +0000)]
 Hi Peter,

 I try change prompt in the psql, but it is set '.' (as '%m') for
non-TCP/IP
connection. This small patch try use uname() information for non-TCP/IP
instead '.'.

                                        Karel

24 years agoHi,
Bruce Momjian [Wed, 8 Mar 2000 01:34:41 +0000 (01:34 +0000)]
Hi,

 the to_char() source code is large, here are regression tests for
numeric/timestamp/int8 part. It is probably enough test for formatting
code in the formatting.c module. The others (float4/float8/int4) types
share this formatting code and eventual bugs for these types aren't
few probable.

 Patch fix timestamp_to_char() for infinity/invalid timestamp too.

                                                Karel

24 years agoProtects you from coredumps if you do eg. str::int4 where str is a text
Bruce Momjian [Tue, 7 Mar 2000 23:58:38 +0000 (23:58 +0000)]
Protects you from coredumps if you do eg. str::int4 where str is a text
field. cf. Tom Lane's <19021.950544016@sss.pgh.pa.us> 14 Feb hackers
message.

Cheers,

Patrick Welche

24 years agoI've recently written to pgsql-ports about a problem with PG7.0 on NT
Bruce Momjian [Tue, 7 Mar 2000 23:49:31 +0000 (23:49 +0000)]
I've recently written to pgsql-ports about a problem with PG7.0 on NT
(Subj: [PORTS] initdb problem on NT with 7.0).  Since nobody helped me,
I had to find out the reson.  The difference between NT and Linux (for
instance) is that "open( path, O_RDWR );" opens a file in text mode.  So
sometime less block can be read than required.

I suggest a following patch.  BTW the situation appeared before, see
hba.c, pqcomm.c and others.

Alexei Zakharov

24 years agoSomeone (probably me) forgot about handling of typecasts applied to
Tom Lane [Tue, 7 Mar 2000 23:30:53 +0000 (23:30 +0000)]
Someone (probably me) forgot about handling of typecasts applied to
parameters.

24 years agoFix problems with pg_upgrade found by Kardos, Dr. Andrea
Bruce Momjian [Tue, 7 Mar 2000 23:09:34 +0000 (23:09 +0000)]
Fix problems with pg_upgrade found by Kardos, Dr. Andrea

24 years agoSorting for the inet data type randomly returns the wrong result
Bruce Momjian [Tue, 7 Mar 2000 23:01:43 +0000 (23:01 +0000)]
Sorting for the inet data type randomly returns the wrong result
when you have networks with the same prefix, but different netmasks.

This is due to the fact that occassionally there is random
(uninitialized?)
data in the extra bits past the point where the netmask cares about
them.

ie (real data from a real live database):

  10.0/10 == 00001010.00100000.00100000.00011000
  10.0/11 == 00001010.00000000.00000000.00000000
                        ^ Bad data, normally never seen

The v4bitncmp() function was only taking one bit length argument so
it would determine that the networks were different, even though
they really aren't (and the netmask test wouldn't be used).  This
ONLY happens if the tuple with the longer bit length is used as the
ip_bits() for the v4bitncmp call AND there happens to be junk data
in place in the shorter tuple.  Odd and random, but I saw it happen
a couple times so...

Ryan Mooney

24 years ago*** empty log message ***
Michael Meskes [Tue, 7 Mar 2000 15:11:03 +0000 (15:11 +0000)]
*** empty log message ***

24 years agoAdd SQL_ASCII encoding test case
Tatsuo Ishii [Mon, 6 Mar 2000 01:29:54 +0000 (01:29 +0000)]
Add SQL_ASCII encoding test case

24 years agoForgot to run autoconf.
Peter Eisentraut [Sun, 5 Mar 2000 14:14:15 +0000 (14:14 +0000)]
Forgot to run autoconf.
(Configure shouldn't really be in CVS ...)

24 years agoAdded configure test for readline's filename_completion_function
Peter Eisentraut [Sun, 5 Mar 2000 13:30:20 +0000 (13:30 +0000)]
Added configure test for readline's filename_completion_function
Completed psql's \? help

24 years ago*** empty log message ***
Michael Meskes [Fri, 3 Mar 2000 14:39:26 +0000 (14:39 +0000)]
*** empty log message ***

24 years ago*** empty log message ***
Michael Meskes [Fri, 3 Mar 2000 13:24:06 +0000 (13:24 +0000)]
*** empty log message ***

24 years ago*** empty log message ***
Michael Meskes [Fri, 3 Mar 2000 09:56:03 +0000 (09:56 +0000)]
*** empty log message ***

24 years ago*** empty log message ***
Michael Meskes [Thu, 2 Mar 2000 19:33:59 +0000 (19:33 +0000)]
*** empty log message ***

24 years ago*** empty log message ***
Michael Meskes [Thu, 2 Mar 2000 12:13:32 +0000 (12:13 +0000)]
*** empty log message ***

24 years agoApply a MATERIAL node to the result of an uncorrelated subplan, if it
Tom Lane [Thu, 2 Mar 2000 04:08:16 +0000 (04:08 +0000)]
Apply a MATERIAL node to the result of an uncorrelated subplan, if it
looks like it will save computation to do so.

24 years agoHmm, it seems nodeMaterial has been broken for a good long while;
Tom Lane [Thu, 2 Mar 2000 04:06:39 +0000 (04:06 +0000)]
Hmm, it seems nodeMaterial has been broken for a good long while;
closing a relcache entry more times than you open it is not cool.

24 years agoPatch for Irix from Mark Dalphin.
Bruce Momjian [Thu, 2 Mar 2000 02:01:01 +0000 (02:01 +0000)]
Patch for Irix from Mark Dalphin.

24 years agoMore fixes for psql ^C handling, especially during copy. Still doesn't
Peter Eisentraut [Wed, 1 Mar 2000 21:10:05 +0000 (21:10 +0000)]
More fixes for psql ^C handling, especially during copy. Still doesn't
cope so well with copy to but that will have to wait for the next release.

Also added -X option to prevent reading .psqlrc startup file.

24 years agoNew plperl Makefile.
Bruce Momjian [Wed, 1 Mar 2000 19:13:08 +0000 (19:13 +0000)]
New plperl Makefile.

24 years agoAdd QNX fixes from Kardos, Dr. Andreas
Bruce Momjian [Wed, 1 Mar 2000 19:11:12 +0000 (19:11 +0000)]
Add QNX fixes from Kardos, Dr. Andreas

24 years agoequalAttr() had its strcmp test backwards :-(
Tom Lane [Wed, 1 Mar 2000 18:47:43 +0000 (18:47 +0000)]
equalAttr() had its strcmp test backwards :-(

24 years agoSmall performance improvement in comparetup_heap.
Tom Lane [Wed, 1 Mar 2000 17:14:09 +0000 (17:14 +0000)]
Small performance improvement in comparetup_heap.

24 years ago*** empty log message ***
Michael Meskes [Wed, 1 Mar 2000 12:49:43 +0000 (12:49 +0000)]
*** empty log message ***

24 years agoChange reindex command to work properly with gist/hash/rtree
Hiroshi Inoue [Wed, 1 Mar 2000 05:39:24 +0000 (05:39 +0000)]
Change reindex command to work properly with gist/hash/rtree

24 years agoSimplify parsing of column constraints by treating constraint attributes
Tom Lane [Wed, 1 Mar 2000 05:18:20 +0000 (05:18 +0000)]
Simplify parsing of column constraints by treating constraint attributes
as independent clauses in the grammar.  analyze.c takes care of putting
the data where it belongs and complaining about invalid combinations.
Also, make TEMP (and TEMPORARY) non-reserved words.

24 years agoRemove using puts() to print messages. Instead use TPRINTF.
Tatsuo Ishii [Wed, 1 Mar 2000 02:39:46 +0000 (02:39 +0000)]
Remove using puts() to print messages. Instead use TPRINTF.

24 years agoChanged execution time of ON <event> RESTRICT referential
Jan Wieck [Tue, 29 Feb 2000 12:28:25 +0000 (12:28 +0000)]
Changed execution time of ON <event> RESTRICT referential
integrity triggers to after statement allways. Ignores
deferred state now, closer to SQL3 semantics.

Jan

24 years agoautoconf
Bruce Momjian [Mon, 28 Feb 2000 23:32:43 +0000 (23:32 +0000)]
autoconf

24 years agoUpdate ecpg to use snprintf
Bruce Momjian [Mon, 28 Feb 2000 23:28:41 +0000 (23:28 +0000)]
Update ecpg to use snprintf

24 years agoUpdate HISTORY file.
Bruce Momjian [Mon, 28 Feb 2000 18:43:07 +0000 (18:43 +0000)]
Update HISTORY file.