- 23 Jan, 2011 2 commits
-
-
Tom Lane authored
It's not clear to me what should happen to the other plpython_unicode variant expected files, but this patch gets things passing on my own machines and at least some of the buildfarm.
-
Tom Lane authored
If wal_buffers is initially set to -1 (which is now the default), it's replaced by 1/32nd of shared_buffers, with a minimum of 8 (the old default) and a maximum of the XLOG segment size. The allowed range for manual settings is still from 4 up to whatever will fit in shared memory. Greg Smith, with implementation correction by me.
-
- 22 Jan, 2011 10 commits
-
-
Tom Lane authored
Not sure why I'm seeing this on Fedora 14 and not earlier versions. Seems like a regression that gcc no longer knows that DIE() doesn't return. Still, adding a dummy return is harmless enough.
-
Tom Lane authored
It appears that gcc 4.5 can issue such warnings for whole structs, not just scalar variables as in the past. Refactor some pg_dump code slightly so that the OutputContext local variables are always initialized, even if they won't be used. It's cheap enough to not be worth worrying about.
-
Peter Eisentraut authored
Global error handling led to confusion and was hard to manage. With this change, errors from PostgreSQL are immediately reported to Python as exceptions. This requires setting a Python exception after reporting the caught PostgreSQL error as a warning, because PLy_elog destroys the Python exception state. Ideally, all places where PostgreSQL errors need to be reported back to Python should be wrapped in subtransactions, to make going back to Python from a longjmp safe. This will be handled in a separate patch. Jan Urbański
-
Tom Lane authored
Reduce #includes to minimum actually needed; in particular include postgres_fe.h not postgres.h, so as to stop build failures on some platforms. Use get_progname() instead of hardwired program name; improve error checking for command line syntax; bring error messages into line with style guidelines; include strerror result in die() cases.
-
Tom Lane authored
Per buildfarm.
-
Magnus Hagander authored
-
Robert Haas authored
The previous coding treated anything that wasn't an autovacuum launcher as a normal backend, which is wrong now that we also have WAL senders. Fujii Masao, reviewed by Robert Haas, Alvaro Herrera, Tom Lane, and Bernd Helmle.
-
Robert Haas authored
The new coding avoids a spurious debug message when a transaction that has changed the isolation level has been rolled back. It also allows the property to be freely changed to the current value within a subtransaction. Kevin Grittner, with one small change by me.
-
Tom Lane authored
Un-break Windows build (I hope) by making the HAVE_FSYNC_WRITETHROUGH code match the backend. Fix incorrect program help message. static-ize all functions.
-
Tom Lane authored
Actually rename the program, rather than just claiming we did. Hook it into the build system. Get rid of useless dependency on libpq. Clean up #include list and messy whitespace.
-
- 21 Jan, 2011 8 commits
-
-
Tom Lane authored
-
Peter Eisentraut authored
The way the exception types where added to the module was wrong for Python 3. Exception classes were not actually available from plpy. Fix that by factoring out code that is responsible for defining new Python exceptions and make it work with Python 3. New regression test makes sure the plpy module has the expected contents. Jan Urbanśki, slightly revised by me
-
Robert Haas authored
Jeff Turner
-
Bruce Momjian authored
-
Bruce Momjian authored
-
Bruce Momjian authored
-
Heikki Linnakangas authored
foreign table. We check for usage privileges on the foreign server, that ought to be enough. Shigeru HANADA
-
Robert Haas authored
Failure to do so can lead to constraint violations. This was broken by commit 1ddc2703 on 2010-02-07, so back-patch to 9.0. Noah Misch. Regression test by me.
-
- 20 Jan, 2011 5 commits
-
-
Peter Eisentraut authored
Hitoshi Harada
-
Peter Eisentraut authored
Hitoshi Harada
-
Peter Eisentraut authored
This makes PLy_procedure_create a bit more manageable. Jan Urbański
-
Robert Haas authored
Original patch by Fernando Ike, revived by Josh Kuperschmidt, reviewed by Andreas Karlsson, and in earlier versions by Tom Lane and Peter Eisentraut.
-
Robert Haas authored
Peter Geoghegan, reviewed by Stephen Frost
-
- 19 Jan, 2011 2 commits
-
-
Tom Lane authored
Thom Brown
-
Peter Eisentraut authored
Jan Urbański, reviewed by Peter Eisentraut, Álvaro Herrera, Tom Lane :-)
-
- 18 Jan, 2011 13 commits
-
-
Peter Eisentraut authored
Jan Urbański
-
Peter Eisentraut authored
The previous code would try to print out a null pointer. Jan Urbański
-
Peter Eisentraut authored
The latter is undocumented and the speed gain is negligible. Jan Urbański
-
Peter Eisentraut authored
Pay attention to the attisdropped field and skip over TupleDesc fields that have it set. Not a real problem until we get table returning functions, but it's the right thing to do anyway. Jan Urbański
-
Peter Eisentraut authored
As discussed, even if the PL needs a permanent memory location, it should use palloc, not malloc. It also makes error handling easier. Jan Urbański
-
Peter Eisentraut authored
If the function using yield to return rows fails halfway, the iterator stays open and subsequent calls to the function will resume reading from it. The fix is to unref the iterator and set it to NULL if there has been an error. Jan Urbański
-
Bruce Momjian authored
add more test cases for open_sync of different sizes.
-
Tom Lane authored
We can get the length of a compressed or out-of-line datum without actually detoasting it. If the lengths of two strings are unequal, we can then conclude they are unequal without detoasting. That saves considerable work in an admittedly less-common case, without costing anything much when the optimization doesn't apply. Noah Misch
-
Magnus Hagander authored
Previously we'd always log replication connections, with no way to turn them off.
-
Heikki Linnakangas authored
-
Bruce Momjian authored
-
Bruce Momjian authored
Ray Stell Also fix some libpq title capitalization problems.
-
Bruce Momjian authored
-