summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
1999-12-20Required catalog changes for extended LONG attribute storage.Jan Wieck
Jan
1999-12-20Cleanup of effective username test.Bruce Momjian
1999-12-20Finally found a platform which has finite() but nonetheless sets errnoTom Lane
rather than returning a NaN for bogus input to pow(). Namely, HPUX 10.20. I think this is sufficient evidence for what I thought all along, which is that the float.c code *must* look at errno whether finite() exists or not.
1999-12-20Clean up some minor gcc warnings.Tom Lane
1999-12-20Clean up some minor gcc warnings.Tom Lane
1999-12-20Clean up some minor gcc warnings. I'm not touching theTom Lane
major one, though, which is the truly ugly stores into libpq private storage. Can't you find a better way to do this?
1999-12-20Clean up some minor gcc warnings.Tom Lane
1999-12-20Whoever touched this code last doesn't seem to understandTom Lane
what a header file is for :-(
1999-12-20Avoid compiler warnings on systems that have snprintf and/or vsnprintfTom Lane
but do not bother to declare them in <stdio.h>. Seems to be a more common omission than you'd think...
1999-12-18Cleanup --alldb option handling.Bruce Momjian
1999-12-18Cleanup vacuumdbBruce Momjian
1999-12-18> > It would be nice for new users; I think it would make it easierBruce Momjian
> > for them to actually set out and do it. Many new users are > > of the not-so-knowledgable variety, and shell scripting isn't > > something they want to undertake. > > Can someone modify the vacuumdb shell script to do that? i tried it... it seems to work neko@kredit.sth.sz
1999-12-18Finally initdb.sh works. Was problem with assuming EUID was defined.Bruce Momjian
1999-12-18initdb cleanupBruce Momjian
1999-12-18initdb cleanupBruce Momjian
1999-12-18More initdb cleanupBruce Momjian
1999-12-18Cleanup of initdb.sh script to be portable, at least marginally.Bruce Momjian
1999-12-18Add cvs.Bruce Momjian
1999-12-17autoconfBruce Momjian
1999-12-17Lowercase $host for QNX.Bruce Momjian
1999-12-17Remove unused files.Bruce Momjian
1999-12-17Fix MULTIBYTE handling in string by using strcat.Bruce Momjian
1999-12-17Okay, this is how it looks: Please apply the attached patch to the currentJan Wieck
sources, otherwise this whole things fails anyway (fails to create the views). Peter Eisentraut Manually applied - Jan
1999-12-17Re-enable makeAttr() if ENABLE_OUTER_JOINS is defined.Thomas G. Lockhart
Somehow got bracketed with #ifdef NOT_USED instead.
1999-12-17ANother initdb cleanupBruce Momjian
1999-12-17Reverse out nextval patch.Bruce Momjian
1999-12-17initdb.sh fix from Peter.Bruce Momjian
1999-12-17This is my -- hopefully sufficiently portable -- attempt at cleaning outBruce Momjian
initdb. No more obscure dependencies on environment variables or paths. It now finds the templates and the right postgres itself (with cmd line options as fallback). It also no longer depends on $USER (su safe), and doesn't advertise that --username allows you to install the db as a different user, since that doesn't work anyway. Also, recovery and cleanup on all errors. Consistent options, clearer documentation. Please take a look at this and adopt it if you feel it's safe enough. I have simulated all the stupid circumstances I could think of, but you never know with shell scripts. Oh yeah, you can give the postgres user a default password now. -- Peter Eisentraut Sernanders väg 10:115
1999-12-16Clear paren level flag on \r or any backslash command, rather thanBruce Momjian
keeping parenlevel unchanged.
1999-12-16Some changes to prepare for LONG attributes.Jan Wieck
Jan
1999-12-16Hi,Bruce Momjian
I sending promised patch with: * getopt_long() - for pg_dump (portable) * and "Usage: " changes in scripts in src/bin/ - this changes are cosmetic only, not change any feature ...etc. All PostgreSQL routines (scripts) support now long options and help's output is alike for all scripts and all support -? or --help. Karel Karel Zak <zakkr@zf.jcu.cz> http://home.zf.jcu.cz/~zakkr/
1999-12-16>Turning nextval and currval into keywords is not an acceptable way toBruce Momjian
>go about this. That will risk breaking existing applications that use >those names as column names. > >It should actually almost work to write sq.nextval as things stand, >because Postgres has for a long time considered table.function and >function(table) to be interchangeable notations for certain kinds of >functions. nextval doesn't seem to be one of that kind of function, >at the moment. I'd suggest leaving the grammar as it was, and taking a >look at ParseFuncOrColumn in parse_func.c to see if you can't persuade >it to accept the sequence functions in that style. OK, good point. I tried to implement it somewhere else and ended up extending transformAttr. Attached you'll find the patch. Jeroen van Vianen
1999-12-16Here's the Create/Alter/Drop Group stuff that's been really overdue. IBruce Momjian
didn't have time for documentation yet, but I'll write some. There are still some things to work out what happens when you alter or drop users, but the group stuff in and by itself is done. -- Peter Eisentraut Sernanders väg 10:115
1999-12-16Update for QNX.Bruce Momjian
1999-12-16autoconfBruce Momjian
1999-12-16*** empty log message ***Michael Meskes
1999-12-16Ethernet MAC addresses (macaddr type) are not compared correctly forBruce Momjian
equality. The lobits macro is wrong and extracts the wrong set of bits out of the structure. To exhibit the problem: select '000000:000000'::macaddr = '000000:110000'::macaddr ; ?column? -------- t (1 row) Daniel Boyd
1999-12-16I have done the QNX4 port with the current source tree. The number ofBruce Momjian
backend/Makefiles to be patched could significantly be reduced since they have been adopted to the QNX4 needs. Andreas Kardos
1999-12-14This patch solves a couple of memory leaks in ecpglib.c. The patch isBruce Momjian
ok for both the development tree (CVS) and for 6.5.3. Stephen Birch
1999-12-14fix_parsetree_attnums was not nearly smart enough about walking parseTom Lane
trees. Also rewrite find_all_inheritors() in a more intelligible style.
1999-12-14> From what I gather, this should be a little cleaner because theBruce Momjian
triggered > function now returns the right datatype. Oops, I got crossed up with Jan's improvements. Ignore this. -- Peter Eisentraut Sernanders väg 10:115 peter_e@gmx.net 75262 Uppsala
1999-12-14>From what I gather, this should be a little cleaner because theBruce Momjian
triggered function now returns the right datatype. -- Peter Eisentraut Sernanders väg 10:115
1999-12-14Depending on my interpreting (and programming) skills, this might solveBruce Momjian
anywhere from zero to two TODO items. * Allow flag to control COPY input/output of NULLs I got this: COPY table .... [ WITH NULL AS 'string' ] which does what you'd expect. The default is \N, otherwise you can use empty strings, etc. On Copy In this acts like a filter: every data item that looks like 'string' becomes a NULL. Pretty straightforward. This also seems to be related to * Make postgres user have a password by default If I recall this discussion correctly, the problem was actually that the default password for the postgres (or any) user is in fact "\N", because of the way copy is used. With this change, the file pg_pwd is copied out with nulls as empty strings, so if someone doesn't have a password, the password is just '', which one would expect from a new account. I don't think anyone really wants a hard-coded default password. Peter Eisentraut Sernanders väg 10:115
1999-12-13New LDOUT makefile variable for QNX os.Bruce Momjian
1999-12-13Prevent _deadcode from showing in ctags and mkidBruce Momjian
1999-12-13aggregate(DISTINCT ...) works, per SQL spec.Tom Lane
Note this forces initdb because of change of Aggref node in stored rules.
1999-12-12any_ordering_op()'s argument should be declared Oid not int.Tom Lane
1999-12-12I'm in TODO mood today ...Bruce Momjian
* Document/trigger/rule so changes to pg_shadow recreate pg_pwd I did it with a trigger and it seems to work like a charm. The function that already updates the file for create and alter user has been made a built-in "SQL" function and a trigger is created at initdb time. Comments around the pg_pwd updating function seem to be worried about this routine being called concurrently, but I really don't see a reason to worry about this. Verify for yourself. I guess we never had a system trigger before, so treat this with care, and feel free to adjust the nomenclature as well. -- Peter Eisentraut Sernanders väg 10:115
1999-12-12Meanwhile, database names with single quotes in names don't work very wellBruce Momjian
at all, and because of shell quoting rules this can't be fixed, so I put in error messages to that end. Also, calling create or drop database in a transaction block is not so good either, because the file system mysteriously refuses to roll back rm calls on transaction aborts. :) So I put in checks to see if a transaction is in progress and signal an error. Also I put the whole call in a transaction of its own to be able to roll back changes to pg_database in case the file system operations fail. The alternative location issues I posted recently were untouched, awaiting the outcome of that discussion. Other than that, this should be much more fool-proof now. The docs I cleaned up as well. Peter Eisentraut Sernanders väg 10:115
1999-12-11Fix for psql from Peter.Bruce Momjian