summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2000-10-09Back out Gunnar R|nning jdbc changes.Bruce Momjian
2000-10-09Cosmetic cleanups of Beos portPeter Eisentraut
2000-10-08Append "/postgresql" to (certain) installation subdirectories whenPeter Eisentraut
installing into a shared location. Also Makefile.global organizational cleanup.
2000-10-08Okay, I have some new code in place that hopefully should work better. IBruce Momjian
couldn't produce a full patch using cvs diff -c this time since I have created new files and anonymous cvs usage doesn't allow you to adds. I'm supplying the modified src/interfaces/jdbc as a tarball at : http://www.candleweb.no/~gunnar/projects/pgsql/postgres-jdbc-2000-10-05.tgz The new files that should be added are : ? org/postgresql/PGStatement.java ? org/postgresql/ObjectPool.java ? org/postgresql/ObjectPoolFactory.java There is now a global static pool of free byte arrays and used byte arrays connected to a statement object. This is the role of the new PGStatement class. Access to the global free array is synchronized, while we rely on the PG_Stream synchronization for the used array. My measurements show that the perfomance boost on this code is not quite as big as my last shot, but it is still an improvement. Maybe some of the difference is due to the new synchronization on the global array. I think I will look into choosing between on a connection level and global level. I have also started experimented with improving the performance of the various conversions. The problem here is ofcourse related handle the various encodings. One thing I found to speed up ResultSet.getInt() a lot was to do custom conversion on the byte array into int instead of going through the getString() to do the conversion. But I'm unsure if this is portable, can we assume that a digit never can be represented by more than one byte ? It works fine in my iso-latin-8859-1 environment, but what about other environments ? Maybe we could provide different ResultSet implementations depending on the encoding used or delegate some methods of the result set to an "converter class". Check the org/postgresql/jdbc2/FastResultSet.java in the tarball above to see the modified getInt() method. Regards, Gunnar
2000-10-08This removes the LDFLAGS from the template and adds an autoconf checkBruce Momjian
for the library. not sure if this will cause problems on other platforms, but if it does it can be easily fixed. Also remove the references to the GeekGadgets includes as the majority of users don't have them installed and they foul the build process. We can document that adding them if you have them installed is a good idea. David Reid
2000-10-08Add runtime configuration option "silent_mode".Tatsuo Ishii
This is equivalent to postmaster's -S option.
2000-10-08Tom Lane wrote:Bruce Momjian
> > For a while I though it might be because we are using an alpha TAS in > > the spinlock rather than the old semaphore. I replaced our spinlock > > with the standard one and it made no difference. We have been running > > with our spinlock implementation for nearly 2 months on a production > > database now without a hitch, so I think it is ok. Did I ever submit > > any patches for the Alpha spinlock? > > Not that I recall. We did get some advice from some Alpha gurus at DEC > who seemed to think the existing TAS code is OK. What was it that you > felt needed to be improved? The current code uses semaphores, which has the advantage that it works well even on multi-processor machines, but the disadvantage that it is not the fastest way possible. Writing a spinlock on Alpha for SMP machines is very difficult, as you need to deal with memory barriers. A real mess. But then one of the people at Compaq pointed out to us that there is a ready-made routine on Alpha. We implemented it with the two patches below. I ran tests with lots of parallel back-ends and got around a 10% speed increase. I include the two patches. Perhaps some of the other people running Tru64 can have a look at these as well. Cheers, Adriaan Joubert
2000-10-08Back out:Bruce Momjian
> this is patch v 0.4 to support transactions with BLOBs. > All BLOBs are in one table. You need to make initdb. > > -- > Sincerely Yours, > Denis Perchine
2000-10-08Hello,Bruce Momjian
this is patch v 0.4 to support transactions with BLOBs. All BLOBs are in one table. You need to make initdb. -- Sincerely Yours, Denis Perchine
2000-10-08Revert rules.out to non-broken state. I will with difficulty hold myTom Lane
tongue about the sloppiness of (a) submitting and (b) committing this file.
2000-10-07To create a temporary installation, the regression test driver should usePeter Eisentraut
the make program that was used to build itself. This seems more correct than guessing around for some gmake.
2000-10-07 Thanks for the patchBruce Momjian
It builds and run nicely now it seem that the resultmap file have not been updated. Cyril VELTER
2000-10-07Remove stuff that shouldn't be here.Peter Eisentraut
2000-10-07Separate -Wl,-E or equivalent into separate make variable, since it's onlyPeter Eisentraut
necessary for the postgres/postmaster link, not every link.
2000-10-07Beos regression patch.Bruce Momjian
2000-10-07 The beos port in the source tree doesn't even compile. and evenBruce Momjian
after that dynamic loading isn't working and shared memory handling is broken. Attached with this message, there is a Zip file which contain : * beos.diff = patch file generated with difforig * beos = folder with beos support files which need to be moved in / src/backend/port * expected = foler with three file for message and precision difference in regression test * regression.diff = rule problem (need to kill the backend manualy) * dynloader = dynloader files (they are also in the pacth files, but there is so much modification that I have join full files) Everything works except a problem in 'rules' Is there some problems with rules in the current tree ? It used to works with last week tree. Cyril VELTER
2000-10-07New beos files. FAQ cleanup.Bruce Momjian
2000-10-07Second thoughts about where to put DeferredTriggerEndQuery() call.Tom Lane
2000-10-07Arrange that no database accesses are attempted during parser() --- thisTom Lane
took some rejiggering of typename and ACL parsing, as well as moving parse_analyze call out of parser(). Restructure postgres.c processing so that parse analysis and rewrite are skipped when in abort-transaction state. Only COMMIT and ABORT statements will be processed beyond the raw parser() phase. This addresses problem of parser failing with database access errors while in aborted state (see pghackers discussions around 7/28/00). Also fix some bugs with COMMIT/ABORT statements appearing in the middle of a single query input string. Function, operator, and aggregate arguments/results can now use full TypeName production, in particular foo[] for array types. DROP OPERATOR and COMMENT ON OPERATOR were broken for unary operators. Allow CREATE AGGREGATE to accept unquoted numeric constants for initcond.
2000-10-05Fix silly typo that led to 'tleIsArrayAssign: I'm confused' message.Tom Lane
Indeed it was.
2000-10-05Clean up gcc warning, fix inappropriate choice of configuration symbol.Tom Lane
2000-10-05Suppress gcc warnings.Tom Lane
2000-10-05Add proofreader's changes to docs.Bruce Momjian
Fix misspelling of disbursion to dispersion.
2000-10-05Reimplementation of UNION/INTERSECT/EXCEPT. INTERSECT/EXCEPT now meet theTom Lane
SQL92 semantics, including support for ALL option. All three can be used in subqueries and views. DISTINCT and ORDER BY work now in views, too. This rewrite fixes many problems with cross-datatype UNIONs and INSERT/SELECT where the SELECT yields different datatypes than the INSERT needs. I did that by making UNION subqueries and SELECT in INSERT be treated like subselects-in-FROM, thereby allowing an extra level of targetlist where the datatype conversions can be inserted safely. INITDB NEEDED!
2000-10-04Added patch by Cristof for catching yet another NOTICE.Michael Meskes
2000-10-04removed binary fileMichael Meskes
CV: ----------------------------------------------------------------------
2000-10-04Btree WAL logging.Vadim B. Mikheev
2000-10-03Better coding of readline testsPeter Eisentraut
2000-10-03Fix to make output format identical on echo -n and echo \c platforms. ThisPeter Eisentraut
had caused the test counts to be wrong on the latter group.
2000-10-03Treat empty connection parameters as is, in particular to enable overridingPeter Eisentraut
environment variables with "nothing". Empty host parameter indicates Unix socket.
2000-10-03Cleanup of fe-connect ifdef platform problem added with beos.Bruce Momjian
2000-10-03New diff that now covers the entire tree. Applying this gets postgresqlBruce Momjian
working on the VERY latest version of BeOS. I'm sure there will be alot of comments, but then if there weren't I'd be disappointed! Thanks for your continuing efforts to get this into your tree. Haven't bothered with the new files as they haven't changed. BTW Peter, the compiler is "broken" about the bool define and so on. I'm filing a bug report to try and get it addressed. Hopefully then we can tidy up the code a bit. I await the replies with interest :) David Reid
2000-10-02Mop up from caddr_t -> Datum conversion to make things extra type safePeter Eisentraut
2000-10-02Banish caddr_t (mostly), use Datum where appropriate.Peter Eisentraut
2000-10-02Here is the first batch of files and diffs for the BeOS port. I've run intoBruce Momjian
problems with some bits of it, but when all the patches are in it'll build and we can fix it from there :) I've got a version that builds and runs and that is the basis for these patches. The first file has the new additional files that are required, template/beos backend/port/dynloader/beos.c backend/port/dynloader/beos.h include/port/beos.h makefiles/Makefile.beos The second is a tarball of diffs against a few files. I've added sys/ipc.h to configure and config.h via configure.in and config.h.in and then started adding the check as this file isn't needed on BeOS and having loads of #ifdef BEOS isn't as obvious as #ifdef HAVE_SYS_IPC_H and isn't as autconf'ish :) Files touched are include/c.h configure.in include/config.h.in include/storage/ipc.h include/utils/int8.h Let me know how these go. I'll await a response before submitting any more. Any problems just get in touch. David Reid
2000-10-02In the meaning of bug-fix, the patch is not needed. Because youBruce Momjian
have already modified "next_insert()" in 7.0-ecpglib. However in the meaning of speed-up, the patch will be needed. -- Regards, SAKAIDA Masaaki -- Osaka, Japan
2000-10-02Communicate PGPORT and PGHOST via environment, not command linePeter Eisentraut
2000-10-02Honor $(SHELL) when invoking pg_regress.Tom Lane
2000-10-02Fix silly typo that prevented resultmap from being honored byTom Lane
pg_regress.
2000-10-02Make default ACL be consistent --- ie, starting point for ChangeAclTom Lane
is the same as the access permissions granted when a relation's relacl field is NULL, ie, owner=all rights, world=no rights.
2000-10-02Add missing python files.Bruce Momjian
2000-10-02Update for PyGreSQL 3.0, from D'Arcy J.M. CainBruce Momjian
2000-10-01Fix quoting bugPeter Eisentraut
2000-10-01Fix test orderPeter Eisentraut
2000-09-30Fix nasty TRUNCATE bug reported by Darrin Ladd. RelationTruncateIndexesTom Lane
would close and then re-open rel being truncated. Depending on the luck of the draw, the re-opened relcache entry might or might not be at the same physical location as before. Unfortunately, if it wasn't then heap_truncate would crash and burn, because it still had a pointer at the old location. Fix is to open and then close rel in RelationTruncateIndexes, so that rel's refcount never goes to zero until heap_truncate is done.
2000-09-29Please apply the following patch to fix problems with the AIX portBruce Momjian
and the fmgr redesign. It makes the homebrewn dl*() functions for more recent Versions of AIX obsolete by using the system dl*() functions instead. It also fixes the expected file for the horology regression test. Please regenerate configure from configure.in, I don't have the environment/time. Andreas
2000-09-29Subselects in FROM clause, per ISO syntax: FROM (SELECT ...) [AS] alias.Tom Lane
(Don't forget that an alias is required.) Views reimplemented as expanding to subselect-in-FROM. Grouping, aggregates, DISTINCT in views actually work now (he says optimistically). No UNION support in subselects/views yet, but I have some ideas about that. Rule-related permissions checking moved out of rewriter and into executor. INITDB REQUIRED!
2000-09-29New unified regression test driver, test/regress makefile cleanup,Peter Eisentraut
add "check" and "installcheck" targets, straighten out make variable naming of host_os, host_cpu, etc.
2000-09-29Standardize on __CYGWIN__ rather than __CYGWIN32__ macro. Doesn't matterPeter Eisentraut
either way (although the former is preferred by the Cygwin folks themselves), but using only one seems nicer.
2000-09-29Enable initdb to create several levels of directories for PGDATA, ifPeter Eisentraut
`mkdir -p' works.