Tom Lane
b36df04ce2
Guard against roundoff errors in new selectivity-estimation code,
...
per bug report from Laurette Cisneros.
2002-01-03 04:02:34 +00:00
Tom Lane
bb2bff498c
Fix to_timestamp/to_date so that zero year input for Y, YY, or YYY
...
formats will be taken as 2000, not year zero. Per bug report from
Aasmund Midttun Godal. Fix from Karel Zak.
2002-01-02 22:09:23 +00:00
Tom Lane
4764ae823b
Do not accept interrupts in RESUME_INTERRUPTS() and END_CRIT_SECTION()
...
macros, but only at explicit CHECK_FOR_INTERRUPTS() calls. Not clear
whether overenthusiastic acceptance of interrupts accounts for any real
bugs, but it definitely seems risky and unnecessary.
2002-01-01 23:16:22 +00:00
Tom Lane
1ccc67600b
Fix race condition that could allow two concurrent transactions
...
to insert the same key into a supposedly unique index. The bug is of
low probability, and may not explain any of the recent reports of
duplicated rows; but a bug is a bug.
2002-01-01 20:32:37 +00:00
Thomas G. Lockhart
c546170e77
Rename TIME token to ISOTIME to eliminate conflict with gram.y parser
...
token. Seems to be isolated to datetime.c and datetime.h.
2002-01-01 02:54:33 +00:00
Tom Lane
ee051baeac
Make sure that all <ctype.h> routines are called with unsigned char
...
values; it's not portable to call them with signed chars. I recall doing
this for the last release, but a few more uncasted calls have snuck in.
2001-12-30 23:09:42 +00:00
Bruce Momjian
6f901b6f5a
Oops, only wanted datetime.c changes in there. lock stuff reversed out.
2001-12-29 21:30:32 +00:00
Bruce Momjian
9e7b9c6f54
Fix newly introduced datetime.c compile failure; not enough parens.
2001-12-29 21:28:18 +00:00
Thomas G. Lockhart
b7a0af7d64
Check a bit more carefully for preceeding ISO field tags
...
when decoding date fields.
2001-12-29 18:40:58 +00:00
Thomas G. Lockhart
b5e23db438
Rework the date/time parsing to tighten up some cases and to enable other
...
cases which should have worked but did not.
Now supports julian day (J2452271), ISO time labels (T040506) and various
combinations of spaces and run-togethers of dates, times, and time zones.
All regression tests pass, and I have more tests to add after the 7.2
release (don't want to require changes to the ancillary horology result
files until after then).
2001-12-29 18:31:48 +00:00
Tom Lane
198152730b
Improve LOCK_DEBUG logging code for LWLocks.
2001-12-28 23:26:04 +00:00
Peter Eisentraut
9d6d4dfeeb
Update from Serguei Mokhov
2001-12-28 18:47:54 +00:00
Tom Lane
d3fc362ec2
Ensure that all direct uses of spinlock-protected data structures use
...
'volatile' pointers to access those structures, so that optimizing
compilers will not decide to move the structure accesses outside of the
spinlock-acquire-to-spinlock-release sequence. There are no known bugs
in these uses at present, but based on bad experience with lwlock.c,
it seems prudent to ensure that we protect these other uses too.
Per pghackers discussion around 12-Dec. (Note: it should not be
necessary to worry about structures protected by LWLocks, since the
LWLock acquire and release operations are not inline macros.)
2001-12-28 18:16:43 +00:00
Bruce Momjian
52c780e04b
Oops, back out paren fix. That is for 7.3.
2001-12-28 05:01:05 +00:00
Bruce Momjian
deab927470
Add mention of Christof Petig for ecpg items.
2001-12-28 05:00:32 +00:00
Peter Eisentraut
32c94a28c2
Update from Serguei Mokhov
2001-12-27 21:06:07 +00:00
Bruce Momjian
2fcc911750
Place PAM before REJECT in sample file.
2001-12-24 04:44:03 +00:00
Michael Meskes
988fdce5d1
- Removed space_or_nl and line_end from pgc.l.
...
- Fixed several bugs concerning arrays of structs including a memory
allocation bug.
2001-12-23 12:17:41 +00:00
Tom Lane
aed0c29f7e
Fix mispeling ...
2001-12-23 07:25:39 +00:00
Peter Eisentraut
cb85a62807
Czech translation updates from Karel Zak
2001-12-21 22:30:49 +00:00
Peter Eisentraut
d56c072c83
Fix error
2001-12-21 22:27:34 +00:00
Tom Lane
12d17deb4f
Use MemSet() rather than a loop to do blank-padding on PS_USE_CLOBBER_ARGV
...
machines. I have just been observing some scenarios where set_ps_display
accounts for more than 10% of the backend CPU, and this loop has to be
the reason.
2001-12-21 15:22:09 +00:00
Thomas G. Lockhart
db667614ef
Add full name of the month of July to the lookup table.
...
Thanks to Greg Sabino Mullane <greg@turnstep.com> for finding the problem.
2001-12-21 06:03:27 +00:00
Thomas G. Lockhart
daefb89e5a
Remove duplicate lines from fouled up last commit (my DSL line failed
...
during the CVS update, leaving locks and bad files).
2001-12-21 06:01:36 +00:00
Tom Lane
ba8d7ac8e9
Select proper geometry comparison file for freebsd/alpha.
...
Per report from Christopher Kings-Lynne.
2001-12-21 03:03:55 +00:00
Bruce Momjian
8799d84603
Add memcmp() test and new memcmp.c file, for SunOS. Tested by Tatsuo.
2001-12-20 21:23:05 +00:00
Tatsuo Ishii
960f6a5fdf
Fix for SunOS4 horology test
2001-12-20 04:25:00 +00:00
Bruce Momjian
48aa2dbe61
MIN() -> Min, fixes compile problem.
2001-12-20 02:39:26 +00:00
Tom Lane
8647c14228
Fix buffer-overrun problem in pretty printer.
2001-12-19 22:35:35 +00:00
Tom Lane
9aa2e7da51
Temporarily dike out GetUndoRecPtr() in checkpoint generation, since we
...
do not use the undo pointer anyway. This is a quick-hack solution for
the three-way deadlock condition discussed in pghackers 17-Dec-01.
Need to find a better way of doing it.
2001-12-19 19:42:51 +00:00
Tom Lane
14e1270579
Tweak to make freebsd/alpha use the correct float8 comparison file.
2001-12-19 17:25:55 +00:00
Tom Lane
de59370844
Make sure that all variants of HeapTupleSatisfies will do the right thing
...
if presented with a tuple in process of being moved by VACUUM. Per
bug report from Brian Hirt.
2001-12-19 17:18:39 +00:00
Bruce Momjian
e71493300c
Move geqo enable into proper section.
2001-12-17 19:09:01 +00:00
Bruce Momjian
f3292901b9
More comment for libpgeasy.
2001-12-14 02:15:04 +00:00
Bruce Momjian
2e05d3ecdb
Fix double-memory free in libpgeasy; problem introduced yesterday.
2001-12-14 00:52:53 +00:00
Bruce Momjian
bdafb40077
Clean up comment in libpgeasy.
2001-12-14 00:40:31 +00:00
Peter Eisentraut
3aaaf5aeee
Add Swedish
2001-12-13 22:06:33 +00:00
Peter Eisentraut
cfe88fdf4b
update
2001-12-13 22:04:40 +00:00
Peter Eisentraut
d159952304
Update from Serguei Mokhov
2001-12-13 22:04:12 +00:00
Peter Eisentraut
2adce49615
Update Hungarian from Kovacs Zoltan
2001-12-13 22:02:20 +00:00
Peter Eisentraut
60e42602a0
revert last change
2001-12-13 18:39:04 +00:00
Bruce Momjian
ba578ae667
Free libpgeasy result structure on database close; fixed memory leak.
2001-12-13 09:40:18 +00:00
Tom Lane
990eb8552e
Don't accept names of complex types (ie, relation types) as being
...
requests for implicit trivial coercions. Prevents sillinesses like
this one:
regression=# select x.int8_tbl.q1 from int8_tbl x;
ERROR: fmgr_info: function 270997776: cache lookup failed
2001-12-12 03:28:49 +00:00
Barry Lind
3dd85bcb08
Applied patch from Thomas O'Dowd that fixes timestamp parsing. The jdbc code
...
wasn't updated to handle more than two decimal digits for fractional seconds
that now are possible in 7.2. This patch fixes the timestamp parsing logic.
I have built and tested on both jdbc1 and jdbc2.
2001-12-11 04:48:05 +00:00
Barry Lind
45a6343ebb
Patch from Ned Wolpert that fixes a bug that caused the cache of types not
...
to be used, causing extra sql statements to be executed. This was a
significant performance problem with the database meta data classes.
The fix is a simple one liner.
2001-12-11 04:44:23 +00:00
Tom Lane
4433eb1dff
Make sure that inlined S_UNLOCK is marked as an update of a 'volatile'
...
object. This should prevent the compiler from reordering loads and stores
into or out of a critical section.
2001-12-11 02:58:49 +00:00
Tom Lane
07009651ce
Repair roundoff-error problem for stddev/variance results near zero,
...
per complaint from Kemin Zhou.
Fix lack of precision in numeric stddev/variance.
2001-12-11 02:02:12 +00:00
Tom Lane
63cc56de54
Suppress subquery pullup and pushdown when the subquery has any
...
set-returning functions in its target list. This ensures that we
won't rewrite the query in a way that places set-returning functions
into quals (WHERE clauses). Cf. bug reports from Joe Conway.
2001-12-10 22:54:12 +00:00
Tom Lane
584f818bef
Declare LWLock pointers as volatile to prevent AIX compiler from
...
reordering operations at its whim. Releasing TAS lock before we've
finished updating proc structure is uncool.
2001-12-10 21:13:50 +00:00
Peter Eisentraut
53016fa55c
Update from Weiping He
2001-12-10 18:45:57 +00:00
Peter Eisentraut
356c02b262
Update from Serguei Mokhov
2001-12-10 18:44:44 +00:00
Tom Lane
4e65c89fc3
AIX 5 needs same resultmap tweaks as AIX 4.
2001-12-10 16:31:23 +00:00
Tom Lane
f3f8499bc0
Repair case-conversion error in to_date's handling of roman numerals.
...
From Manuel Sugawara, approved by Karel Zak.
2001-12-10 15:34:05 +00:00
Michael Meskes
0a7a8256b8
committed the missing files
2001-12-10 14:55:47 +00:00
Peter Eisentraut
3f1d142c59
Add French translation
2001-12-10 13:03:55 +00:00
Peter Eisentraut
e2024ec6f0
update
2001-12-10 13:03:12 +00:00
Thomas G. Lockhart
9ed2ac291b
Remove duplicate lines from previous patch attempt. Trouble with my
...
DSL line at home broke things right in the middle of an update. :(
2001-12-10 00:11:06 +00:00
Thomas G. Lockhart
abbd64cddf
Support ODBC-style CURRENT_TIME, CURRENT_USER, etc with trailing empty
...
parens. This is not SQL spec syntax, so later we will remove
this extension from gram.y.
2001-12-10 00:01:14 +00:00
Michael Meskes
a4420c4970
Fixed several bugs concerning indicators and added error messages instead of segfaults.
2001-12-09 15:27:49 +00:00
Thomas G. Lockhart
eda51264c8
Allow variable (unrestricted) precision for TIME and TIMESTAMP types in parser.
2001-12-09 04:39:39 +00:00
Thomas G. Lockhart
cd8b354971
Honor the typmod field for time zone intervals.
2001-12-09 04:37:50 +00:00
Michael Meskes
d6fbb10556
Fix ecpg to allow pointer to structs.
2001-12-08 20:43:35 +00:00
Michael Meskes
9992f2b104
- Removed debug message from preproc.y.
...
- Fixed some bugs in exec sql var and exec sql type command.
2001-12-06 14:46:20 +00:00
Michael Meskes
ee14711ce8
- Fixed variable handling in AT statement.
...
- Fixed bug that caused segfault when given incorrect DB name.
- Fixed bug in ecpglib causing indicator to list the size of the
variable instead of the size of the data.
2001-12-05 15:32:07 +00:00
Tatsuo Ishii
2b714fd66e
Fix for usage of spirntf in more portable way.
2001-12-05 02:06:19 +00:00
Tatsuo Ishii
9f8ff2ab5a
Re-enable SunOS4 port. Replace
...
RTLD_LAZY | RTLD_GLOBAL to 1.
It seems sunos4.h was accidentally modified between 7.1 and 7.2.
2001-12-05 02:03:59 +00:00
Tom Lane
969cc16c69
Enforce restriction that COPY DELIMITERS string must be exactly one
...
character; replace strchr() search with simple comparison to speed up
COPY IN. Per discussion in pghackers.
2001-12-04 21:19:57 +00:00
Tom Lane
a0734d1eb1
Change appendStringInfoChar to appendStringInfoCharMacro in a couple of
...
hot spots --- buys about 10% in Verner's INSERT example.
2001-12-04 20:57:22 +00:00
Tom Lane
f4bd04bb67
Replace pq_getbytes(&ch, 1) calls with pq_getbyte(), which is easier
...
to use and significantly faster. This tweak saves 25% (!) of the runtime
of COPY IN in a test with 8000-character lines. I wouldn't normally
commit a performance improvement this late in the cycle, but 25% got
my attention...
2001-12-04 19:40:17 +00:00
Tom Lane
dae887abfe
Remove now-dead code for processing CONSTR_UNIQUE nodes in
...
AlterTableAddConstraint. Earlier reorganization of the parser's
processing of ALTER TABLE means that these node types no longer get here.
2001-12-04 17:19:48 +00:00
Bruce Momjian
1af6761207
Hi Bruce, here is a first version of the hu.po file for the backend. I
...
tested it with 7.2b3 and worked fine.
Regards, Zoltan
2001-12-04 17:00:51 +00:00
Tom Lane
0e9e888ebd
Suppress data directory access-permissions check when __CYGWIN__,
...
per recent pghackers discussions. Improving this should be a TODO
for 7.3.
2001-12-04 16:17:48 +00:00
Michael Meskes
388008cdd7
Fixed dumping of structs without indicators.
2001-12-04 12:33:15 +00:00
Peter Eisentraut
a3cef00dd6
Update to get around backslash problems
2001-12-03 19:56:43 +00:00
Tom Lane
c3cf68de6b
Fix latent bug in checking for failure of hashtable creation.
2001-12-03 19:02:58 +00:00
Bruce Momjian
1a88682d45
attachement is the NLS patch for backend/po & pg_dump,
...
they are all against the current CVS tree. the patch is about 70K.
regards laser
2001-12-03 18:43:21 +00:00
Tom Lane
18e4523829
Update IRIX geometry results to match newer MIPS FPUs, rather than
...
older ones. We really gotta get out of the business of matching every
last low-order bit in this test ...
2001-12-03 17:48:57 +00:00
Tom Lane
18ab41eeef
Add configure-time check whether sig_atomic_t is defined; if not,
...
provide a default definition equating it to 'int'. Should trigger only
on machines with pre-ANSI-C header files, eg SunOS 4.1.x.
2001-12-03 17:44:52 +00:00
Tom Lane
4ea2b8f556
Pg_lo_open must OR together multiple modes, not AND them. Per report
...
from Andreas Kretzer.
2001-12-03 14:49:46 +00:00
D'Arcy J.M. Cain
d75ed09b31
Bump version to 3.3. Mostly this is because there is some confusion about
...
the latest version and I wanted to make sure that there was a clean release.
I also change the build files as I discussed in my letter of Nov 6, 2001. At
the time I was asked to hold off until after the release.
2001-12-03 12:39:44 +00:00
Tom Lane
ae8a9b8a9f
Remove code to lookup WinSock error strings in netmsg.dll; according to
...
Magnus Hagander that DLL only contains error strings for the Net***
functions, *not* WinSock. We need to look for a workable solution for
older Windows flavors ... but it won't happen for PG 7.2.
2001-12-03 00:28:24 +00:00
Tom Lane
acf7aa6240
HPUX 11 should use geometry-solaris-precision, not geometry-positive-zeros
...
as is needed for HPUX 9 and 10.
2001-12-02 15:48:19 +00:00
Peter Eisentraut
15abc7788e
More correct way to check for existence of types, which allows to specify
...
which include files to consider. Should fix BeOS problems with int8 types.
2001-12-02 11:38:40 +00:00
Peter Eisentraut
ad81c99984
Update since left and right are no longer key words.
2001-12-02 11:36:04 +00:00
Tom Lane
ac06a7a21f
Try to make genbki.sh a little more bulletproof, per trouble report
...
from Paul Stavrides.
2001-11-30 20:21:06 +00:00
Tom Lane
c31bcbc8d6
Repair failure to mark an inserted Materialize node with the appropriate
...
extParam/locParam lists. Per bug #526 .
2001-11-30 19:24:15 +00:00
Peter Eisentraut
22a6a7e371
updates
2001-11-30 18:04:23 +00:00
Tom Lane
8830ce54d6
Tweak plpgsql's expression reader to be smarter about parentheses and
...
to give more useful error messages. Stephen Szabo's example of this
morning ('loop' used as a variable name inside a subselect) works
correctly now, and a FOR that is misinterpreted as an integer FOR will
draw 'missing .. at end of SQL expression', which is at least
marginally helpful.
2001-11-29 22:57:37 +00:00
Tom Lane
636a939fe5
Fix array_out's failure to backslash backslashes, per bug# 524. Also,
...
remove brain-dead rule that double quotes are needed if and only if the
datatype is pass-by-reference; neither direction of the implication holds
water. Instead, examine the actual data string to see if it contains
any characters that force us to quote it.
Add some documentation about quoting of array values, which was previously
explained nowhere AFAICT.
2001-11-29 21:02:41 +00:00
Peter Eisentraut
0556f7ca87
NLS updates, most notably fixed zh_TW translations
2001-11-29 18:59:28 +00:00
Peter Eisentraut
15a028b1f5
Fix results to work with normal systems again.
2001-11-29 18:57:31 +00:00
Tom Lane
3312b8ed3c
Load netmsg.dll locally in winsock_strerror, to avoid actual and
...
potential problems discussed in pgsql-interfaces.
2001-11-28 19:40:29 +00:00
Bruce Momjian
f6e1ebb166
No longer need define test in md5.h because of Hiroshi's win_md5.c.
2001-11-28 00:16:53 +00:00
Tom Lane
e7257b8eb2
Fix nasty memory leak in pg_restore: _PrintData called inflateInit but
...
never did inflateEnd, thus leaking some tens of KB per call. Which
added up *real fast* when dealing with, say, thousands of BLOBs.
Thanks to Lane Rollins for the bug report.
2001-11-27 23:48:12 +00:00
Tom Lane
b3ff03b5d4
strcat should obviously be strcpy here.
2001-11-27 18:21:51 +00:00
Bruce Momjian
0f74fb7871
Chinese PO patch
...
Laser.
2001-11-27 17:51:54 +00:00
Tom Lane
d7decc61d9
Fix various bogosities in usage message.
2001-11-26 23:10:36 +00:00
Bruce Momjian
ea4f08ed49
Rename make_keywords.README to make_keywords.
2001-11-26 22:41:58 +00:00
Tom Lane
8e75b36aeb
Fix unportable, non-spec-compliant use of offsetof() with a nonconstant
...
member offset.
2001-11-26 22:31:08 +00:00
Bruce Momjian
07c3f00b14
Rename find_baddefs to find_badmacros
2001-11-26 21:42:24 +00:00