OSDN Git Service
Bruce Momjian [Mon, 22 Mar 1999 05:07:32 +0000 (05:07 +0000)]
Add % to b_expr.
Bruce Momjian [Mon, 22 Mar 1999 05:00:57 +0000 (05:00 +0000)]
Cleanup of NULL in inet types.
Tom Lane [Sun, 21 Mar 1999 19:59:13 +0000 (19:59 +0000)]
Correct some comments, fix a small memory wastage when datatype
is pass-by-value.
Bruce Momjian [Sun, 21 Mar 1999 06:31:59 +0000 (06:31 +0000)]
This patch fixes the bug that made it impossible to grant permissions to
a user such as "www-data".
Oliver
Tom Lane [Sun, 21 Mar 1999 02:43:58 +0000 (02:43 +0000)]
Add .cvsignore file so cvs doesn't complain if you have lex/yacc
output files laying about.
Bruce Momjian [Sun, 21 Mar 1999 02:30:22 +0000 (02:30 +0000)]
cleanup
Tom Lane [Sun, 21 Mar 1999 02:27:47 +0000 (02:27 +0000)]
Ah, *now* I understand: plpgsql lexer must be generated with flex -l ...
Bruce Momjian [Sun, 21 Mar 1999 02:26:56 +0000 (02:26 +0000)]
Fix for %4 and 4%.
Tom Lane [Sun, 21 Mar 1999 01:07:07 +0000 (01:07 +0000)]
Hmm, it seems some versions of flex declare yytext as extern char[]
but others declare it as extern char *. gcc complains (quite rightly too).
Worked around it by rearranging the order of inclusions so that we don't
have to explicitly declare yytext; this should work with either variant.
Michael Meskes [Sat, 20 Mar 1999 19:46:54 +0000 (19:46 +0000)]
*** empty log message ***
Tom Lane [Sat, 20 Mar 1999 18:45:27 +0000 (18:45 +0000)]
Remove yacc/lex output files from CVS repository.
Tom Lane [Sat, 20 Mar 1999 18:03:37 +0000 (18:03 +0000)]
Remove yacc/lex output files from CVS repository.
Tom Lane [Sat, 20 Mar 1999 18:00:38 +0000 (18:00 +0000)]
Clean up build procedure: do not keep raw lex/yacc files around,
only the edited ones.
Tom Lane [Sat, 20 Mar 1999 17:58:21 +0000 (17:58 +0000)]
make clean should remove lex.yy.c
Tom Lane [Sat, 20 Mar 1999 17:53:54 +0000 (17:53 +0000)]
Script for preparing derived files during tarball construction.
Bruce Momjian [Sat, 20 Mar 1999 13:18:20 +0000 (13:18 +0000)]
Reverse out pfree agg part of patch from Erik Riedel.
Bruce Momjian [Sat, 20 Mar 1999 02:31:45 +0000 (02:31 +0000)]
cleanup
Bruce Momjian [Sat, 20 Mar 1999 02:07:31 +0000 (02:07 +0000)]
cleanup
Bruce Momjian [Sat, 20 Mar 1999 01:13:22 +0000 (01:13 +0000)]
Fix for aggregate memory leaks from Erik Riedel.
Bruce Momjian [Sat, 20 Mar 1999 00:15:40 +0000 (00:15 +0000)]
Fix &g.
Bruce Momjian [Fri, 19 Mar 1999 23:48:50 +0000 (23:48 +0000)]
Fix shift/reduce for NULL = Var.
Bruce Momjian [Fri, 19 Mar 1999 22:31:39 +0000 (22:31 +0000)]
Fix for memory leak in executor with fjIsNull.
Bruce Momjian [Fri, 19 Mar 1999 18:56:43 +0000 (18:56 +0000)]
I suggest the following portability patch, which does not
change functionality, but makes the code more ANSI C'ish.
My AIX xlc compiler barfs on all of these. Can someone please
review and apply to current.
<<port.patch>>
Thanks
Andreas
Bruce Momjian [Fri, 19 Mar 1999 02:41:41 +0000 (02:41 +0000)]
Add EXCEPT/INTERSECT doc changes.
Bruce Momjian [Thu, 18 Mar 1999 22:11:47 +0000 (22:11 +0000)]
cleanup parser
Bruce Momjian [Thu, 18 Mar 1999 22:03:59 +0000 (22:03 +0000)]
grammar cleanup'
Bruce Momjian [Thu, 18 Mar 1999 22:01:56 +0000 (22:01 +0000)]
cleanup of grammer.
Bruce Momjian [Thu, 18 Mar 1999 21:39:56 +0000 (21:39 +0000)]
Fix optimizer indexing not working for negative numbers.
Bruce Momjian [Thu, 18 Mar 1999 19:59:55 +0000 (19:59 +0000)]
cleanups
Michael Meskes [Thu, 18 Mar 1999 15:20:33 +0000 (15:20 +0000)]
*** empty log message ***
Bruce Momjian [Wed, 17 Mar 1999 22:53:31 +0000 (22:53 +0000)]
Add new postgres -O option to allow system table structure changes.
Bruce Momjian [Wed, 17 Mar 1999 21:58:25 +0000 (21:58 +0000)]
grammar cleanup
Bruce Momjian [Wed, 17 Mar 1999 21:38:13 +0000 (21:38 +0000)]
INET/CIDR doc cleanup
Bruce Momjian [Wed, 17 Mar 1999 21:27:02 +0000 (21:27 +0000)]
Add docs about left-associativity of operators.
Bruce Momjian [Wed, 17 Mar 1999 21:24:17 +0000 (21:24 +0000)]
Add documentation change for %'s precidence.
Bruce Momjian [Wed, 17 Mar 1999 21:02:57 +0000 (21:02 +0000)]
Left associates all operators, instead of non-associating them.
Bruce Momjian [Wed, 17 Mar 1999 20:17:13 +0000 (20:17 +0000)]
Have % operator have precedence like /.
Bruce Momjian [Tue, 16 Mar 1999 21:03:00 +0000 (21:03 +0000)]
Update sgml for 6.4.* release changes.
Bruce Momjian [Tue, 16 Mar 1999 20:15:06 +0000 (20:15 +0000)]
Update nextval() code.
Bruce Momjian [Tue, 16 Mar 1999 04:26:01 +0000 (04:26 +0000)]
Fix snprintf with strings, and nextval('"Aa"');
Bruce Momjian [Tue, 16 Mar 1999 03:24:18 +0000 (03:24 +0000)]
Here is a patch.
I have changed to call pg_exec_query_dest() instead of pg_exec_query().
Thanks.
Hiroshi Inoue
Bruce Momjian [Tue, 16 Mar 1999 03:09:51 +0000 (03:09 +0000)]
contrib/array_iterator/array_iterator.c won't compile.
Included patches should fix the problem.
--
Tatsuo Ishii
Bruce Momjian [Tue, 16 Mar 1999 03:09:09 +0000 (03:09 +0000)]
autoconf
Bruce Momjian [Tue, 16 Mar 1999 03:02:55 +0000 (03:02 +0000)]
Hmmm. It had to do with tcl/tk on FreeBSD. The configure scripts are
in
different directories. The patch gave the option of specifying a dir
for
the tk script and if they were both in the same directory then it didn't
mind being empty. It's small so I'm including it. It was tested with
autoconf 2.12.
Vince.
Bruce Momjian [Tue, 16 Mar 1999 02:57:10 +0000 (02:57 +0000)]
Change Does Not Exist to 'does not exist'.
Bruce Momjian [Mon, 15 Mar 1999 22:20:20 +0000 (22:20 +0000)]
cleanup
Michael Meskes [Mon, 15 Mar 1999 18:26:55 +0000 (18:26 +0000)]
*** empty log message ***
Bruce Momjian [Mon, 15 Mar 1999 16:48:34 +0000 (16:48 +0000)]
Allow sequence nextval actions to be case-sensitive.
Bruce Momjian [Mon, 15 Mar 1999 15:20:52 +0000 (15:20 +0000)]
Irix fix from Jeff Johnson
Bruce Momjian [Mon, 15 Mar 1999 15:00:08 +0000 (15:00 +0000)]
bool uses one byte
Bruce Momjian [Mon, 15 Mar 1999 14:07:44 +0000 (14:07 +0000)]
Drop buffers before destroying database files.
Bruce Momjian [Mon, 15 Mar 1999 13:45:09 +0000 (13:45 +0000)]
LIKE cleanup.
Tom Lane [Mon, 15 Mar 1999 03:24:32 +0000 (03:24 +0000)]
Fix brain death in !!= operator ... it's still pretty bogus
but at least now it does what it's supposed to do ...
Bruce Momjian [Mon, 15 Mar 1999 02:18:37 +0000 (02:18 +0000)]
> > > This patches src/bin/psql/psql.c.
> > >
> > > This patch is in responce to the following TODO list item:
> > > * have psql \d on a view show the query
> > > -Ryan
Tom Lane [Mon, 15 Mar 1999 01:43:07 +0000 (01:43 +0000)]
Fix int8 configure one more time ... prior version didn't
define INT64_FORMAT in all cases.
Bruce Momjian [Mon, 15 Mar 1999 00:34:53 +0000 (00:34 +0000)]
Hi All,
I've changed the check_primary_key() function code to allow for either
the "automatic insert key rule" or "dependent insert key rule".
Previously it restricted the addtion of a child entry if the
corresponding parent entry was not there. Now if the option is
"automatic" it will add an entry in the parent too ( it will be
successful if there are no no-null fields in the parent apart from the
primary key).
The way to use it now is:
:/*
* check_primary_key () -- check that key in tuple being
inserted/updated
* references existing tuple in "primary" table.
* Though it's called without args You have to specify referenced
* table/keys while creating trigger: key field names in triggered
table,
* referenced table name, referenced key field names,type of action
[automatic|dependent]:
* EXECUTE PROCEDURE
* check_primary_key ('Fkey1', 'Fkey2', 'Ptable', 'Pkey1', 'Pkey2',
'[automatic|dependent]').
*/
I am attaching the new ../contrib/spi/refint.c file which will do this.
I will be glad to help in case of any problems.
- Anand.
Bruce Momjian [Sun, 14 Mar 1999 20:17:20 +0000 (20:17 +0000)]
cleanup
Bruce Momjian [Sun, 14 Mar 1999 20:01:14 +0000 (20:01 +0000)]
Cleanup
Bruce Momjian [Sun, 14 Mar 1999 18:12:21 +0000 (18:12 +0000)]
Reversed out libpq protocol patch for Tom Lane.
Bruce Momjian [Sun, 14 Mar 1999 16:49:32 +0000 (16:49 +0000)]
src/backend/utils/adt/numeric.c fails to compile due to a string having
an
embedded new-line character.
Billy G. Allie
Bruce Momjian [Sun, 14 Mar 1999 16:46:21 +0000 (16:46 +0000)]
This is another example of why not allowing utility functions in SPI
would be a Bad Thing.
For what it's worth, I found another case in libpq where you can get a T
message without a D that my utility patch needs to handle. I have
attached
the updated patch against the 6.4.2 version of
src/interfaces/libpq/fe-exec.c
Jerry Gay
Bruce Momjian [Sun, 14 Mar 1999 16:44:02 +0000 (16:44 +0000)]
Attempting to insert a value of 'now' into a datetime type
results in a bogus datetime value under AlphaLinux. (Note that
the link to submit a port-specific bug on your website is broken)
-Test Case:
----------
testdb=> create table dttest (dt datetime);
testdb=> insert into dttest values ('now');
--------------------------------------------------------------------------
Solution:
---------
The basic problem is the typedefs of AbsoluteTime and RelativeTime,
which are both 'int32'. These types appear to be used synonymously
with the 'time_t' type, which on AlphaLinux is typedef'd as a 'long
int', which is 64-bits (not 32). The solution included here fixes
the datetime type (it now passes the regression test), but does not
pass the absolute and relative time regression tests. Presumably, a
more thorough investigation of how these types are used is warranted.
The included patch is from the v6.3.2 source, but can be applied to
the v6.4.2 source. Please note that there is also a RedHat-specific
patch distributed with the PostgreSQL source package from RedHat
that was applied first.
Rich Edwards
Bruce Momjian [Sun, 14 Mar 1999 16:42:15 +0000 (16:42 +0000)]
Hi,
Just in case you'd like to see what I was talking about, I am
attaching
my patch to src/interfaces/libpq/fe-exec.c to prevent utility functions
called from SPI from locking up the client.
Jerry Gay
Bruce Momjian [Sun, 14 Mar 1999 16:40:18 +0000 (16:40 +0000)]
Here is a little syntax error found in a .y file... A dropped semi.
DwD
--
Daryl W. Dunbar
Bruce Momjian [Sun, 14 Mar 1999 16:32:46 +0000 (16:32 +0000)]
Cleanup of hash functions in pg_proc.
Bruce Momjian [Sun, 14 Mar 1999 16:27:59 +0000 (16:27 +0000)]
compile cleanup
Bruce Momjian [Sun, 14 Mar 1999 16:25:07 +0000 (16:25 +0000)]
Compile cleanup
Bruce Momjian [Sun, 14 Mar 1999 16:08:17 +0000 (16:08 +0000)]
Done.
o overwriting an existing lobj now works
o 8KB garbage block always inserted problem is fixed
Tatsuo Ishii
Bruce Momjian [Sun, 14 Mar 1999 16:06:43 +0000 (16:06 +0000)]
I've been having also sorts of fun trying to get kerberos 4
authentifica
tion
working with postgresql-6.4.2 and KTH-KRB Ebones
(http://www.pdc.kth.se/kth-kr
b) on a dec alpha running DU 4.0D using the native compiler. The
following
patch does the trick.
The rationale behind this is as follows. The KTH-KRB code header files
defines
lots of lengths like INST_SZ,REALM_SZ and KRB_SENDAUTH_VLEN. It also has
a
habit of doing things like
chararray[LENGTH] = '\0'
to ensure null terminated strings. In my instance this just happens to
blat
the kerberos principal instance string leading to error like
pg_krb4_recvauth: kerberos error: Can't decode authenticator
(krb_rd_req
)
The application code that comes with KTH-KRB uses "KRB_SENDAUTH_VLEN +
1" and
sometimes uses "INST_SZ + 1" so it seems safest to put that 1 char
buffer in
the appropriate place.
Rodney McDuff
Bruce Momjian [Sun, 14 Mar 1999 16:03:33 +0000 (16:03 +0000)]
We have tested the patches on three platforms:
NetBSD/macppc
LinuxPPC
FreeBSD 2.2.6-RELEASE
All of them seem happy with the regression test. Note that, however,
compiling with optimization enabled on NetBSD/macppc causes an initdb
failure (other two platforms are ok). After checking the asm code, we
are suspecting that might be a compiler(egcs) bug.
Tatsuo Ishii
Bruce Momjian [Sun, 14 Mar 1999 16:00:55 +0000 (16:00 +0000)]
This patch improves the destroyuser script's behaviour in checking whether
the user is allowed to detroy users. It also allows for a possible incorrect
empty reply to a yes/no question.
Oliver Elphick
Bruce Momjian [Sun, 14 Mar 1999 15:24:15 +0000 (15:24 +0000)]
Patches for the SGML documentation relating
to the tutorial code changes.
NOTE: I couldn't get ngsmls to find the document
type so that the changes could be checked. However,
the changes were very minor:
Best,
Clark
Bruce Momjian [Sun, 14 Mar 1999 15:22:15 +0000 (15:22 +0000)]
Fixup for src/tutorial/func.c and src/tutorial/func.source
Removed char16 and replaced with an example using Point
as suggested by Tom Lane. The dept field was changed to
the cubicle field denoting the row(x) and column(y) of
the employee's cube in the corporate jungle. The C function
builds a 'compromise' cubicle from two suggested ones.
I'll try and patchup the documentation next.
Clark
Bruce Momjian [Sun, 14 Mar 1999 05:23:12 +0000 (05:23 +0000)]
Hello,
I've been working on the following TODO list item:
* psql \d on index with char()/varchar() fields shows improper length
I've attached a simple patch to fix this.
-Ryan
Bruce Momjian [Sun, 14 Mar 1999 05:18:00 +0000 (05:18 +0000)]
The isWritable method in ResultSetMetaData returns the logically
incorrect result. This bug goes back to at least 6.3.
Alvin
Bruce Momjian [Sun, 14 Mar 1999 05:15:08 +0000 (05:15 +0000)]
I have a problem with Access97 not working properly when entering new
records using a sub form, i.e. entering a new order/orderlines or master
and
detail tables. The problem is caused by a SQL statement that Access97
makes
involving NULL. The syntax that fails is "column_name" = NULL. The
following attachment was provided by -Jose'-. It contains a very small
enhancement to gram.y that will allow Access97 to work properly with sub
forms. Can this enhancement be added to release 6.5?
<<gram.patch>>
Thanks, Michael
Bruce Momjian [Sun, 14 Mar 1999 05:12:45 +0000 (05:12 +0000)]
There are errors in the PGmoney class in the conversion routines over
the handling of negative numbers and commas. The attached path attempts
to fix these.
However the getValue method does not yet insert commas into the
generated string.
Also in getValue there is an incorrect assumption that the currency
symbol is '$', it should of course be '£'!. I have no idea on how to go
about fixing this one.
Alvin
Bruce Momjian [Sun, 14 Mar 1999 05:09:05 +0000 (05:09 +0000)]
Enclosed below I have a patch to allow a btree index on the int8 type.
I would like some feedback on what the hash function for the int8 hash
function
in the ./backend/access/hash/hashfunc.c should return.
Also, could someone (maybe Tomas Lockhart?) look-over the patch and make
sure
the system table entries are correct? I've tried to research them as
much as I
could, but some of them are still not clear to me.
Thanks,
-Ryan
Michael Meskes [Thu, 11 Mar 1999 15:42:08 +0000 (15:42 +0000)]
*** empty log message ***
Vadim B. Mikheev [Wed, 10 Mar 1999 12:16:09 +0000 (12:16 +0000)]
We have to return dummy tuple for empty targetlist!
Try select t1.x from t1, t2 where t1.y = 1 and t2.y = 1
- t2 scan target list will be empty and so no one tuple
will be returned...
Tom Lane [Wed, 10 Mar 1999 05:05:58 +0000 (05:05 +0000)]
Make type 'regproc' binary-compatible with int4 and oid,
so that it has some SQL operators available. It's difficult to write
automated tests of a data type that you haven't even got == for...
Tom Lane [Wed, 10 Mar 1999 05:02:34 +0000 (05:02 +0000)]
Fix some typos in argument and result types in pg_proc
and pg_operator. The lone error in pg_operator was reported as a bug
by Michael Reifenberger; the multiple errors in pg_proc would only have
been noticed if one invoked the functions by name rather than using
operator syntax. I guess few people do that.
Marc G. Fournier [Tue, 9 Mar 1999 14:17:51 +0000 (14:17 +0000)]
From: Constantin Teodorescu <teo@flex.ro>
UPgrade to 0.96 ..
Marc G. Fournier [Tue, 9 Mar 1999 13:39:15 +0000 (13:39 +0000)]
Changes to fix/improve the dynamic loading on NT
From: Horak Daniel <horak@mmp.plzen-city.cz>
Bruce Momjian [Mon, 8 Mar 1999 14:01:57 +0000 (14:01 +0000)]
Fix OR index selectivity problem.
Bruce Momjian [Mon, 8 Mar 1999 13:35:50 +0000 (13:35 +0000)]
Fix for Alpha OR selectivity bug.
Marc G. Fournier [Mon, 8 Mar 1999 04:17:33 +0000 (04:17 +0000)]
Have configure check for use of %lld for int64, and if that fails, check for
use of %qd...a more generic solution then having #ifdef __<INSERT OS HERE>__
in the code...
Tom Lane [Sun, 7 Mar 1999 23:05:57 +0000 (23:05 +0000)]
Export include/utils/mcxt.h so that external stuff can include
palloc.h again. Move exporting of backend header files out of libpq's
Makefile (whatever was it doing there in the first place?) and into
backend/Makefile.
Tom Lane [Sun, 7 Mar 1999 23:03:32 +0000 (23:03 +0000)]
Modify mcxt.h so that it doesn't pull in half of creation.
Tom Lane [Sun, 7 Mar 1999 21:32:06 +0000 (21:32 +0000)]
Cleaner autoconf tests for int8 support.
Bruce Momjian [Sun, 7 Mar 1999 12:00:40 +0000 (12:00 +0000)]
geqo now at 11 tables
Michael Meskes [Sun, 7 Mar 1999 08:01:18 +0000 (08:01 +0000)]
*** empty log message ***
Bruce Momjian [Sun, 7 Mar 1999 03:34:11 +0000 (03:34 +0000)]
Really remove Recipe.
Tom Lane [Sat, 6 Mar 1999 22:58:11 +0000 (22:58 +0000)]
Eliminate duplicated code in dt.h
Tom Lane [Sat, 6 Mar 1999 21:25:04 +0000 (21:25 +0000)]
Reduce DEF_MAXBACKENDS to 32 so that default configuration
is less likely to fail for lack of semaphores.
Tom Lane [Sat, 6 Mar 1999 21:17:56 +0000 (21:17 +0000)]
A few further tweaks to shared memory space estimation.
This change brings the default size of the main shmem block back under 1MB,
which is a fairly popular value for the kernel's SHMMAX parameter.
Michael Meskes [Fri, 5 Mar 1999 09:38:51 +0000 (09:38 +0000)]
*** empty log message ***
Michael Meskes [Fri, 5 Mar 1999 09:25:34 +0000 (09:25 +0000)]
*** empty log message ***
Tom Lane [Wed, 3 Mar 1999 00:02:42 +0000 (00:02 +0000)]
Partial fix for copied-plan bugs reported by Hiroshi Inoue:
_copyResult didn't copy subPlan structure completely. _copyAgg is still
busted, apparently because of changes from EXCEPT/INTERSECT patch
(get_agg_tlist_references is no longer sufficient to find all aggregates).
No time to look at that tonight, however.
Tom Lane [Mon, 1 Mar 1999 00:10:44 +0000 (00:10 +0000)]
Executor no longer cares about mergejoinop, mergerightorder, mergeleftorder,
so remove them from MergeJoin node. Hack together a partial
solution for commuted mergejoin operators --- yesterday
a mergejoin int4 = int8 would crash if the planner decided to
commute it, today it works. The planner's representation of
mergejoins really needs a rewrite though.
Also, further testing of mergejoin ops in opr_sanity regress test.