Bruce Momjian
8f5561a0d9
More config.h cleanups.
1999-07-17 04:12:10 +00:00
Bruce Momjian
fbe4ad2154
Add config.h as needed.
1999-07-17 04:00:31 +00:00
Tom Lane
8ee07b506d
Tired of seeing that 'unused variable' warning...
1999-07-16 23:15:46 +00:00
Tom Lane
05933f4ec1
Add back improperly removed #include for utils/trace.h.
1999-07-16 23:12:39 +00:00
Tom Lane
e1e110228f
Add back improperly removed #include for config.h.
...
This probably ought to be kept in *all* the port files, but these two
are the only ones that generated compiler warnings for me ...
1999-07-16 23:09:45 +00:00
Tom Lane
1a6c5b96ad
Add back improperly removed #include for utils/dynamic_loader.h.
1999-07-16 23:05:45 +00:00
Tom Lane
8753b23c8c
Fix 'SO__MINOR_VERSION' typo for irix5; add AIX shlib support
...
from Andreas Z.; minor cosmetic cleanups.
1999-07-16 22:56:01 +00:00
Tom Lane
36ce6d439f
Support subscripts on bare column names.
1999-07-16 22:32:25 +00:00
Tom Lane
f9e2c7fae8
Allow bare column names to be subscripted as arrays. This
...
creates a reduce/reduce conflict, which I resolved by changing the
'AexprConst -> Typename Sconst' rule to 'AexprConst -> SimpleTypename Sconst'.
In other words, a subscripted type declaration can't be used in that
syntax any longer. This seems a small price to pay for not having to
qualify subscripted columns anymore.
Other cleanups: rename res_target_list to update_target_list, and remove
productions for variants that are not legal in an UPDATE target list;
rename res_target_list2 to plain target_list; delete position_expr
in favor of using b_expr in that production; merge opt_indirection
into attr nonterminal, since there are no places where an unsubscripted
attr is wanted; fix typos in Param support; change case_arg so that
an arbitrary a_expr is allowed, not only a column name.
1999-07-16 22:29:42 +00:00
Tom Lane
bc9236bc01
Revise _bt_binsrch() so that its binary search loop takes
...
care of equal-key cases, eliminating bt_firsteq(). The linear search
formerly done by bt_firsteq() took a lot of time in the case where many
equal keys appear on the same page.
1999-07-16 22:17:06 +00:00
Bruce Momjian
9679cb3910
More cleanup
1999-07-16 17:46:32 +00:00
Bruce Momjian
773088809d
More cleanup
1999-07-16 17:07:40 +00:00
Bruce Momjian
7d5b08dec0
More cleanup
1999-07-16 05:41:19 +00:00
Bruce Momjian
69817665cb
Final cleanup
1999-07-16 05:23:30 +00:00
Bruce Momjian
a71802e12e
Final cleanup.
1999-07-16 05:00:38 +00:00
Bruce Momjian
9b645d481c
Update #include cleanups
1999-07-16 03:14:30 +00:00
Bruce Momjian
a9591ce66a
Change #include's to use <> and "" as appropriate.
1999-07-15 23:04:24 +00:00
Bruce Momjian
2e6b1e63a3
Remove unused #includes in *.c files.
1999-07-15 22:40:16 +00:00
Bruce Momjian
40a89e08b2
Cleanups.
1999-07-15 20:32:30 +00:00
Bruce Momjian
fb38a5d8cf
Remove un-needed #include's from *.c files.
1999-07-15 19:21:43 +00:00
Bruce Momjian
353eb3dadf
Add updates.
1999-07-15 16:55:32 +00:00
Bruce Momjian
4b2c2850bf
Clean up #include in /include directory. Add scripts for checking includes.
1999-07-15 15:21:54 +00:00
Tom Lane
390e8354ce
Add SHLIB_LINK setting for solaris_i386 and solaris_sparc ports,
...
per bug report from Daren Sefcik <daren@partnersdata.com>.
1999-07-15 02:03:00 +00:00
Tom Lane
8aea617c03
Several routines failed to cope with CASE expressions, and
...
indeed some of 'em were missing support for more node types than that...
1999-07-15 01:52:09 +00:00
Bruce Momjian
0cf1b79528
Cleanup of /include #include's, for 6.6 only.
1999-07-14 01:20:30 +00:00
Bruce Momjian
ad4948862c
Remove S*I comments from Stephan.
1999-07-13 21:17:45 +00:00
Bruce Momjian
050371fccd
More cpu cleanups, only for 6.6.
1999-07-13 20:12:51 +00:00
Bruce Momjian
540c114225
Redefine cpu's as __cpu__. Only for 6.6 branch.
1999-07-13 20:00:37 +00:00
Bruce Momjian
30e27a9099
readd include for safety.
1999-07-12 13:32:38 +00:00
Tatsuo Ishii
8f02f2252d
Fix some compiler warnings (Tomoaki Nishiyama), add WIN1250 support (Pavel Behal)
1999-07-11 22:47:21 +00:00
Tom Lane
eeaeb1bda8
RewritePreprocessQuery tried to match resjunk targets against
...
result relation ... wrong ...
1999-07-11 17:54:30 +00:00
Tom Lane
eeb3abe017
Ignore resjunk targetlist entries when matching arguments to
...
a SubLink with the subplan's targetlist. This fixes a problem seen with,
for example, a subselect that uses GROUP BY.
1999-07-11 02:04:19 +00:00
Tom Lane
9cbd349bcd
ExecReScanGroup() forgot to clear grpstate->grp_firstTuple,
...
thereby guaranteeing wrong results from a rescanned Group node.
1999-07-11 01:57:32 +00:00
Tom Lane
ebc3cc7efa
heapam.h uses type time_t, but didn't include <time.h>.
1999-07-10 22:06:26 +00:00
Tom Lane
cc62dc2032
Fix tuplecmp() to ensure repeatable sort ordering of tuples
...
that contain null fields. Old code would produce erratic sort results
because comparisons of tuples containing nulls could produce inconsistent
answers.
1999-07-10 18:21:59 +00:00
Bruce Momjian
d62c25d452
cleanup of long long int atoi test.
1999-07-10 17:03:34 +00:00
Bruce Momjian
5a3fa95c39
Update stuff for 6.5.1 release.
1999-07-10 16:28:02 +00:00
Tatsuo Ishii
4fceee0e71
-mieee and # does not work for certain version of egcs
1999-07-10 12:33:10 +00:00
Tom Lane
73efd3867d
Fix gcc complaint about long being passed to sprintf %d.
1999-07-09 22:53:40 +00:00
Bruce Momjian
863db45e86
Make ^ precidence greater than *.
1999-07-09 21:59:59 +00:00
Bruce Momjian
cda192317a
createlang now returns 2 for language already exists.
1999-07-09 17:57:46 +00:00
Bruce Momjian
103cf75651
Re-apply range check patch after fixing LIMIT_H test and defines.
1999-07-09 17:40:31 +00:00
Bruce Momjian
cd5dfb65a9
Add mention block size <= 32k.
1999-07-09 16:56:44 +00:00
Tom Lane
b9c0096d97
Another place that HAVE_LIMITS_H was misspelled.
1999-07-09 15:09:54 +00:00
Bruce Momjian
8aa780bdd3
cleanup
1999-07-09 04:51:27 +00:00
Bruce Momjian
296efd8065
Fix for ACL length problem on different platforms.
1999-07-09 03:28:53 +00:00
Bruce Momjian
46db8ac712
Backup pg_atoi patch for long checking. Caused initdb problems.
1999-07-09 03:27:20 +00:00
Bruce Momjian
ffe0097519
Add linux_m68k template file.
1999-07-09 02:35:37 +00:00
Bruce Momjian
27ef825743
Rename tuturials for char2/char16 removal.
1999-07-08 15:28:51 +00:00
Bruce Momjian
1a7273bd5c
Rename example temp to mytemp.
1999-07-08 15:27:01 +00:00
Bruce Momjian
3acb7d1634
Test Case:
...
----------
exec sql begin declare section;
short s ;
unsigned short us;
exec sql end declare section;
exec sql create table test(s smallint, us smallint);
exec sql commit;
s = 1; us =32000;
exec sql insert into test values( :s, :us ) ; <== error
Error Message: "i4toi2: '-600309759' causes int2 underflow"
Masaaki Sakaida
1999-07-08 03:32:57 +00:00
Bruce Momjian
0343024a5c
Add CXXFLAGS +=
1999-07-08 03:30:16 +00:00
Bruce Momjian
2cf2a4fe2b
> In both datetime_trunc() and timespan_trunc() in dt.c,
...
> the DTK_MICROSEC case is just like the DTK_MILLISEC case.
> I think this is wrong and it ought to look like
> fsec = rint(fsec * 1000000) / 1000000;
> no?
Tom Lane.
1999-07-08 03:22:46 +00:00
Bruce Momjian
70ce98b77a
Rename pg_temp to pg_sorttemp so it does not conflict with temp table names.
1999-07-08 02:46:39 +00:00
Bruce Momjian
5035d7b985
pg_atoi() does range check on int4 data only if
...
"HAS_LONG_LONG" is defined based on the assumption that
strtol() would return ERANGE if a platform does not support
64-bit integers. In current PostgreSQL 6.5 (and 6.4.2)
distribution, "HAS_LONG_LONG" is defined only if platform
is "alpha". (See include/port/alpha.h) I think the int4
range check should apply to linux_alpha as well. (I have
not tested yet but I guess this might be applicable to
newer Linux/i386 distributions which includes new GCC which
implements long int as 64-bit int.)
1999-07-08 00:27:01 +00:00
Bruce Momjian
a6c688d9cd
Irix update from Mark Dalphin
1999-07-08 00:15:03 +00:00
Bruce Momjian
104d6c816e
Add ^ precidence.
1999-07-08 00:00:43 +00:00
Bruce Momjian
38ff52c379
Allow port numbers 32k - 64k.
1999-07-07 17:17:50 +00:00
Bruce Momjian
db15dc05ad
Fix for \do and ceil()/float.
1999-07-07 16:09:33 +00:00
Bruce Momjian
e9c977da7d
Fix spelling of variable name.
1999-07-07 09:36:45 +00:00
Bruce Momjian
9f7ac20e57
Cleanup of min tuple size.
1999-07-07 09:27:28 +00:00
Bruce Momjian
1391098851
Fix misspelling.
1999-07-07 09:11:15 +00:00
Bruce Momjian
5babe7db45
Remove old readme file.
1999-07-05 21:48:21 +00:00
Bruce Momjian
137eacbe6a
Align cleanup.
1999-07-04 05:47:06 +00:00
Bruce Momjian
a0b4af3c85
More alignment
1999-07-04 05:44:56 +00:00
Bruce Momjian
ede5a41829
Clean up maximum rewrite tuple length.
1999-07-04 05:16:05 +00:00
Bruce Momjian
eba41848aa
Clarify maximum tuple and max attribute lengths.
1999-07-04 04:56:02 +00:00
Tom Lane
b31aa64f4a
Make exec_simple_check_plan() check for a null plan, so
...
that it doesn't crash when processing a utility statement.
1999-07-04 01:03:01 +00:00
Bruce Momjian
efb621278e
Add abortcurrent trans to temp table fix.
1999-07-03 15:43:57 +00:00
Bruce Momjian
ff8756dd1c
More cleanup
1999-07-03 01:57:53 +00:00
Bruce Momjian
b1444b0934
Update tuple size check.
1999-07-03 01:56:16 +00:00
Bruce Momjian
8dd3407bf5
Fix for insertion of tuple too large.
1999-07-03 01:47:02 +00:00
Bruce Momjian
97dfff832c
Fix to prevent too large tuple from being created.
1999-07-03 00:33:04 +00:00
Bruce Momjian
954e466c27
Fix for removal of temp tables if last transaction was aborted.
1999-07-02 18:09:28 +00:00
Bruce Momjian
d20abcd8c5
typo fix.
1999-07-02 03:21:37 +00:00
Bruce Momjian
c9a0a232e2
#ifdef around true and false.
1999-07-01 19:47:25 +00:00
Tom Lane
0aa544eb41
make distclean missed a few symlinks created by configure.
1999-07-01 00:06:28 +00:00
Tom Lane
fa179dde82
Make sure symlinks for sharedlib get removed by 'make clean'.
1999-06-30 23:57:31 +00:00
Tom Lane
7bf29f6b78
Generate a full set of version-numbered symlinks when building
...
a shared library, not just when installing it.
1999-06-30 23:54:18 +00:00
Michael Meskes
9b0e20574b
*** empty log message ***
1999-06-29 09:25:25 +00:00
Vadim B. Mikheev
49f68a8584
Avoid disk writes for read-only transactions.
1999-06-29 04:54:49 +00:00
Bruce Momjian
cffd0f9c89
Add time warning about bigtests.
1999-06-28 18:40:34 +00:00
Peter Mount
e70b4831d7
Some minor bug fixes
1999-06-27 11:05:38 +00:00
Bruce Momjian
fe90c54800
Add var defines for no testandset
1999-06-26 15:58:28 +00:00
Bruce Momjian
ef15ed17a0
Remove -m486 on Openbsd.
1999-06-26 15:54:36 +00:00
Michael Meskes
19630e0cbc
*** empty log message ***
1999-06-25 10:42:06 +00:00
Tom Lane
b692c956ba
Makefile.global failed to define $(LIBS), which is
...
unfortunate considering that several subdirectory makefiles were counting
on it to do so...
1999-06-25 00:13:45 +00:00
Michael Meskes
d12561040c
*** empty log message ***
1999-06-24 13:15:31 +00:00
Peter Mount
dc88d74af3
Some fixes supplied by Jon Nielsen jonfn@image.dk
1999-06-23 05:56:20 +00:00
Tom Lane
1f2c6f4f48
Replace rewriter's checkQueryHasAggs and checkQueryHasSubLink
...
with expression_tree_walker-based code. The former failed to cope with
expressions containing SubLinks, and the latter returned TRUE for both
SubLinks and Aggrefs (cut-and-paste bug?). There is a lot more scope for
using expression_tree_walker in this module, but I'll restrain myself
until the 6.6 split occurs from touching not-demonstrably-broken code.
1999-06-21 01:26:56 +00:00
Tom Lane
fd8e580bb7
Clean up problems with sublinks + grouping in planner. Not
...
sure if they are all fixed, because rewriter is now the stumbling block,
but at least some cases work that did not work before.
1999-06-21 01:20:57 +00:00
Tom Lane
974bdd94f9
On second thought, expression_tree_walker should handle bare
...
SubLink nodes after all ...
1999-06-21 01:18:02 +00:00
Bruce Momjian
db4a6a2618
I have a small patch for 6.5.
...
aclchk.c: heap_close() is not called after calling heap_openr().
Atsushi Ogawa
1999-06-19 05:05:52 +00:00
Bruce Momjian
8d37132ec9
Rename to vararg_format().
1999-06-19 05:00:30 +00:00
Bruce Momjian
326d8658ad
Change form() to varargform() to prevent portability problems.
1999-06-19 04:54:23 +00:00
Tom Lane
e786508600
My first chosen victim for expression_tree_walker conversion
...
is parse_aggs.c. This fixes its failure to cope with (at least) CaseExpr
and ArrayRef nodes, which is the reason why both of these fail in 6.5:
select coalesce(f1,0) from int4_tbl group by f1;
ERROR: Illegal use of aggregates or non-group column in target list
select sentence.words[0] from sentence group by sentence.words[0];
ERROR: Illegal use of aggregates or non-group column in target list
The array case still fails, but at least it's not parse_agg's fault
anymore ... considering that we now support CASE officially, I think
it's important to fix the first example ...
1999-06-19 03:48:31 +00:00
Tom Lane
86f36719db
Create a generic expression-tree-walker subroutine, which
...
will gradually replace all of the boilerplate tree-walk-recursion code that
currently exists in O(N) slightly different forms in N subroutines.
I've had it with adding missing cases to these subroutines...
1999-06-19 03:41:45 +00:00
Tom Lane
d30c4b0562
Temporarily disable error checks for missing selectivity
...
functions, in order to work around oversight in 6.5 release: rtree
index functions haven't got any. Mea culpa ...
1999-06-19 00:44:44 +00:00
Bruce Momjian
0591bbd558
Patch to allow vacuum on multi-segment tables, from Hiroshi Inoue
1999-06-18 16:47:23 +00:00
Thomas G. Lockhart
8c3a796328
Incorporate fixes from Date and Darwen, 1997.
...
Did not check the function declarations as carefully as the other parts,
though all of the function names *do* match up with D&D.
1999-06-18 05:03:48 +00:00