summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2000-03-14Marginal performance improvement in LockBuffer --- calculate addressTom Lane
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.
2000-03-14> I have improved the System V semaphore emulation of the QNX4 port.Bruce Momjian
Please > apply the attached patch to > > backend/port/qnx4 > > Andreas Kardos >
2000-03-14> To make PostgreSQL compilable on Digital Unix I had to modify theBruce Momjian
alpha_cc > template file. Patch attached. > > Andreas Kardos >
2000-03-14> Here is an extension of the regression test suite for Digital UnixBruce Momjian
(Alpha). > > Andreas Kardos
2000-03-14> Here is an extension of the regression test suite for Digital UnixBruce Momjian
(Alpha). >
2000-03-14> The snprintf stuff in interfaces/ecpg/preproc/Makefile.in is broken.Bruce Momjian
Please > apply the attached patch. > > Andreas Kardos > >
2000-03-14Detect postmaster being ready by calling psql -l rathern thanTatsuo Ishii
checking postmaster.pid. It's not enough to check the existence of postmaster.pid since DB recovery might be running.
2000-03-14Fix some bogosities in the code that deals with estimating the fractionTom Lane
of tuples we are going to retrieve from a sub-SELECT. Must have been half asleep when I did this code the first time :-(
2000-03-13Fixed deficiency where an unterminated (no semicolon) command at end ofPeter Eisentraut
psql script would be dropped silently.
2000-03-13Extend numeric_round and numeric_trunc to accept negative scale inputsTom Lane
(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.
2000-03-13Remove unnecessary limitations on lengths of bpchar and varchar constants.Tom Lane
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.
2000-03-13Performance improvement for lexing long strings: increase flex'sTom Lane
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.
2000-03-12Somehow, the variant NATIONAL CHAR [ VARYING ] was missing from theTom Lane
set of SQL-standard type names that we accept.
2000-03-12Fix performance bug in constant-expression simplifier. After findingTom Lane
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...
2000-03-12Fix performance problem in fireRIRonSubselect: with nested subqueries,Tom Lane
fireRIRonSubselect was invoked twice at each subselect, leading to an exponential amount of wasted effort.
2000-03-12Clean up grammar's handling of NULL in expressions: a_expr_or_null isTom Lane
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.
2000-03-11Further tweaking of logic that decides when to materialize an uncorrelatedTom Lane
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 ...)
2000-03-11Make TypeCategory think that NAME is a member of typeTom Lane
category STRING. Also, if UNKNOWNOID is passed in, return UNKNOWN_TYPE not USER_TYPE.
2000-03-11Further fixes for bogus list-slinging, scribbling on input, etc in typeTom Lane
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.
2000-03-11Karel Zakr's revised patch to fix psql prompt for local host connections.Peter Eisentraut
2000-03-11exec_simple_check_plan() must not allow a plan having initPlans orTom Lane
subPlans to be considered 'simple'. This fixes reported problem with 'return exists (select 1 from foo);' in plpgsql function.
2000-03-11Finish cleaning up backend's handling of /* ... */ and -- comments,Tom Lane
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.
2000-03-11Change PQconndefaults() to return a malloc'd array, instead of a staticTom Lane
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.
2000-03-11Update perl5's self-test for changed spelling of connection failureTom Lane
error message.
2000-03-10*** empty log message ***Michael Meskes
2000-03-09Remove SHOW after datestyle reset.Bruce Momjian
2000-03-09Fix for bsdi 4.1 shared libraries.Bruce Momjian
2000-03-09*** empty log message ***Michael Meskes
2000-03-09Redo permissions-checking code so that it does the right thing at APPENDTom Lane
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.
2000-03-09Trial implementation of ALTER DROP COLUMN.Hiroshi Inoue
They are #ifdef'd. Add -D_DROP_COLUMN_HACK__ compile option to evaluate it.
2000-03-08Extend #ifdef CLOBBER_FREED_MEMORY debugging option so that memoryTom Lane
freed wholesale by AllocSetReset() is overwritten too.
2000-03-08Repair access-to-already-freed-memory error recently introduced intoTom Lane
VACUUM.
2000-03-08Fix ==-instead-of-= typo that gcc does its level best to point out.Tom Lane
Isn't anybody paying attention to warnings around here?
2000-03-08Clean up gmake warning caused by recent NetBSD patch. <grumble>Tom Lane
2000-03-08Hi,Bruce Momjian
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.
2000-03-08I've made a diff against the 7.0beta1 tree that accomplishes several things:Bruce Momjian
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>
2000-03-08Bruce and all:Bruce Momjian
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
2000-03-08Reversed out inet patch.Bruce Momjian
2000-03-08 Hi Peter,Bruce Momjian
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
2000-03-08Hi,Bruce Momjian
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
2000-03-07Protects you from coredumps if you do eg. str::int4 where str is a textBruce Momjian
field. cf. Tom Lane's <19021.950544016@sss.pgh.pa.us> 14 Feb hackers message. Cheers, Patrick Welche
2000-03-07I've recently written to pgsql-ports about a problem with PG7.0 on NTBruce Momjian
(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
2000-03-07Someone (probably me) forgot about handling of typecasts applied toTom Lane
parameters.
2000-03-07Fix problems with pg_upgrade found by Kardos, Dr. AndreaBruce Momjian
2000-03-07Sorting for the inet data type randomly returns the wrong resultBruce Momjian
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
2000-03-07*** empty log message ***Michael Meskes
2000-03-06Add SQL_ASCII encoding test caseTatsuo Ishii
2000-03-05Forgot to run autoconf.Peter Eisentraut
(Configure shouldn't really be in CVS ...)
2000-03-05Added configure test for readline's filename_completion_functionPeter Eisentraut
Completed psql's \? help
2000-03-03*** empty log message ***Michael Meskes