Commit Graph

7902 Commits

Author SHA1 Message Date
Peter Eisentraut 984b0b4df8 Append "/postgresql" to (certain) installation subdirectories when
installing into a shared location.  Also Makefile.global organizational
cleanup.
2000-10-08 21:13:27 +00:00
Bruce Momjian f38e4747a5 initlocation must set env before postmaster start. 2000-10-08 19:44:01 +00:00
Bruce Momjian 5383b5d8ed Okay, I have some new code in place that hopefully should work better. I
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-08 19:37:56 +00:00
Bruce Momjian 52cba15789 autoconf 2000-10-08 13:52:22 +00:00
Bruce Momjian ed059eca88 This removes the LDFLAGS from the template and adds an autoconf check
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-08 13:49:47 +00:00
Peter Eisentraut fec5d17df2 These aren't used anymore. 2000-10-08 13:25:11 +00:00
Peter Eisentraut 23d7c6973f Split out Developer's from Programmer's guide. 2000-10-08 13:24:09 +00:00
Peter Eisentraut e6ef738034 markup repair 2000-10-08 13:22:24 +00:00
Tatsuo Ishii 2af8b963f1 Add runtime configuration option "silent_mode".
This is equivalent to postmaster's -S option.
2000-10-08 09:25:38 +00:00
Bruce Momjian be58282516 Tom Lane wrote:
> > 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-08 04:38:21 +00:00
Bruce Momjian e5e5de8e8c Back out:
> 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-08 03:53:15 +00:00
Bruce Momjian cf5a950c10 Hello,
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-08 03:18:57 +00:00
Tom Lane d8e582e236 Revert rules.out to non-broken state. I will with difficulty hold my
tongue about the sloppiness of (a) submitting and (b) committing this
file.
2000-10-08 02:51:50 +00:00
Bruce Momjian 08291f435d Remove S-Tree_indexes.html.gz 2000-10-07 22:14:09 +00:00
Peter Eisentraut 9d2f3000f2 To create a temporary installation, the regression test driver should use
the make program that was used to build itself.  This seems more correct
than guessing around for some gmake.
2000-10-07 20:23:03 +00:00
Bruce Momjian 969e28d878 Thanks for the patch
It builds and run nicely now

        it seem that the resultmap file have not been updated.

Cyril VELTER
2000-10-07 19:48:27 +00:00
Peter Eisentraut 8650454640 Remove stuff that shouldn't be here. 2000-10-07 18:59:12 +00:00
Peter Eisentraut a3578c13e6 Separate -Wl,-E or equivalent into separate make variable, since it's only
necessary for the postgres/postmaster link, not every link.
2000-10-07 18:43:23 +00:00
Bruce Momjian 450b62138d autoconf 2000-10-07 14:57:17 +00:00
Bruce Momjian 8e469b4ffc Beos regression patch. 2000-10-07 14:55:16 +00:00
Bruce Momjian 43d402e320 autoconf 2000-10-07 14:40:10 +00:00
Bruce Momjian 7ea8403c8a The beos port in the source tree doesn't even compile. and even
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-07 14:39:21 +00:00
Bruce Momjian a759460178 New beos files. FAQ cleanup. 2000-10-07 14:16:02 +00:00
Tom Lane 949529481e Second thoughts about where to put DeferredTriggerEndQuery() call. 2000-10-07 04:00:41 +00:00
Tom Lane fbd26d6984 Arrange that no database accesses are attempted during parser() --- this
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-07 00:58:23 +00:00
Tom Lane 4837270be9 Fix silly typo that led to 'tleIsArrayAssign: I'm confused' message.
Indeed it was.
2000-10-05 21:52:08 +00:00
Tom Lane a4566a7a7a Clean up gcc warning, fix inappropriate choice of configuration symbol. 2000-10-05 20:18:33 +00:00
Tom Lane 32616129cd Suppress gcc warnings. 2000-10-05 20:10:20 +00:00
Bruce Momjian be389bcf8f Final proofreader changes to docs. 2000-10-05 19:57:23 +00:00
Bruce Momjian b32685a999 Add proofreader's changes to docs.
Fix misspelling of disbursion to dispersion.
2000-10-05 19:48:34 +00:00
Tom Lane 05e3d0ee86 Reimplementation of UNION/INTERSECT/EXCEPT. INTERSECT/EXCEPT now meet the
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-05 19:11:39 +00:00
Peter Eisentraut 5292637f52 Allow overriding HSTYLE and PSTYLE from environment 2000-10-05 16:57:23 +00:00
Bruce Momjian bc11dd61d3 Update FAQ. 2000-10-05 05:14:58 +00:00
Bruce Momjian 1ba857513d Update FAQ. 2000-10-05 04:58:24 +00:00
Bruce Momjian 0f972fa02c Update FAQ. 2000-10-05 04:57:27 +00:00
Bruce Momjian e2a43d866c Update FAQ. 2000-10-05 04:52:18 +00:00
Bruce Momjian e6c8485127 Update FAQ. 2000-10-05 04:49:12 +00:00
Peter Eisentraut 18d99bc264 Update soundex to new fmgr interface and fix algorithm 2000-10-04 19:25:34 +00:00
Peter Eisentraut baa3a09b5f Convert macaddr documentation to DocBook, update outdated information. 2000-10-04 15:47:45 +00:00
Michael Meskes 2d5ff2f9a0 Added patch by Cristof for catching yet another NOTICE. 2000-10-04 12:39:45 +00:00
Michael Meskes 136a4aebb6 removed binary file
CV: ----------------------------------------------------------------------
2000-10-04 10:11:33 +00:00
Vadim B. Mikheev 5800c6b9aa Btree WAL logging. 2000-10-04 00:04:43 +00:00
Peter Eisentraut 831e78e0c4 Better coding of readline tests 2000-10-03 19:50:21 +00:00
Peter Eisentraut 1b7332fbab Fix to make output format identical on echo -n and echo \c platforms. This
had caused the test counts to be wrong on the latter group.
2000-10-03 19:37:39 +00:00
Peter Eisentraut 7c5a444f53 Treat empty connection parameters as is, in particular to enable overriding
environment variables with "nothing".  Empty host parameter indicates
Unix socket.
2000-10-03 19:16:17 +00:00
Peter Eisentraut 3189e48470 One check for sys/un.h ought to be enough. Zero checks for sys/shm.h are not. 2000-10-03 13:39:24 +00:00
Bruce Momjian 2737974085 Cleanup of fe-connect ifdef platform problem added with beos. 2000-10-03 03:39:46 +00:00
Bruce Momjian 734b1f7655 autoconf 2000-10-03 03:20:13 +00:00
Bruce Momjian e846c2bb6f Update configure.in 2000-10-03 03:20:00 +00:00
Bruce Momjian 341e8841e3 autoconf 2000-10-03 03:15:44 +00:00