- 27 Jan, 2011 11 commits
-
-
Tom Lane authored
The link to the CREATE CONVERSION manual page was split across a page boundary in the PDF output, leading to "\pdfendlink ended up in different nesting level than \pdfstartlink" error while building PDFs. It wouldn't be worth changing text that's undergoing active editing to avoid this, since other editing might result in moving the link away from the page end anyway. But this paragraph has been static for a long time, so might as well fix it to prevent it from being an issue in future.
-
Tom Lane authored
Security: CVE-2010-4015
-
Tom Lane authored
contrib/intarray's gettoken() uses a fixed-size buffer to collect an integer's digits, and did not guard against overrunning the buffer. This is at least a backend crash risk, and in principle might allow arbitrary code execution. The code didn't check for overflow of the integer value either, which while not presenting a crash risk was still bad. Thanks to Apple Inc's security team for reporting this issue and supplying the fix. Security: CVE-2010-4015
-
Tom Lane authored
We only need that header when compiling with icc, since the gcc variant of ia64_get_bsp() uses in-line assembly code. Per report from Frank Brendel, the header doesn't exist on all IA64 platforms; so don't include it unless we need it.
-
Tom Lane authored
-
Heikki Linnakangas authored
-
Tom Lane authored
-
Bruce Momjian authored
transaction loss for a _database_ crash.
-
Robert Haas authored
This reverts commit a06e41de of 2011-01-26. Per discussion, this behavior is not wanted, as it would need to change if we ever made composite types support DEFAULT.
-
Bruce Momjian authored
paragraphs, per suggestion from Dan Birken.
-
Tom Lane authored
In the case where the initial call of systable_getnext_ordered() returned NULL, this function would nonetheless call it again. That's undefined behavior that only by chance failed to not give visibly incorrect results. Put an if-test around the final loop to prevent that, and in passing improve some comments. No back-patch since there's no actual failure. Per report from YAMAMOTO Takashi.
-
- 26 Jan, 2011 15 commits
-
-
Peter Eisentraut authored
-
Peter Eisentraut authored
Synchronize pg_config.h.in with configure.in (someone must have forgotten to run autoheader or autoreconf), and clean up some spurious change in configure introduced by the last commit there.
-
Peter Eisentraut authored
It is redundant, given the error context. Jan Urbański
-
Peter Eisentraut authored
Use the built-in TypeError, not SPIError, for errors having to do with argument counts or types. Use SPIError, not simply plpy.Error, for errors in PLy_spi_execute_plan. Finally, do not set a Python exception if PyArg_ParseTuple failed, as it already sets the correct exception. Jan Urbański
-
Peter Eisentraut authored
The temporarily broken plpython_unicode test shows a case where this is used. Do remaining fix-ups on the expected files at the same time.
-
Peter Eisentraut authored
Older versions of GCC appear to report these with the current standard option set, newer versions need -Wformat-security.
-
Bruce Momjian authored
-
Bruce Momjian authored
-
Bruce Momjian authored
sections, rather than just calling it "/contrib/module_name". Also update pg_test_fsync build instructions now that it is in /contrib.
-
Bruce Momjian authored
non-durable items, per Robert Haas.
-
Itagaki Takahiro authored
-
Robert Haas authored
Noah Misch, slightly revised.
-
Robert Haas authored
The previous coding prevented ALTER TABLE .. ADD COLUMN from being used with a non-NULL default in situations where the table's rowtype was being used elsewhere. But this is a completely arbitrary restriction since you could do the same operation in multiple steps (add the column, add the default, update the table). Inspired by a patch from Noah Misch, though I didn't use his code.
-
Bruce Momjian authored
always 8k writes, per suggestion from Tom. Also adjust open_sync output layout.
-
Bruce Momjian authored
Robvert Haas.
-
- 25 Jan, 2011 9 commits
-
-
Robert Haas authored
The latter is the correct name of the operation to change the data type of a column. Noah Misch
-
Tom Lane authored
We used to do that on pg_listener, but pg_listener is no more. Also add a bit more documentation for ShareRowExclusive mode.
-
Robert Haas authored
Noah Misch
-
Tom Lane authored
There isn't any need to track this state on a table-wide basis, and trying to do so introduces undesirable semantic fuzziness. Move the flag to pg_index, where it clearly describes just a single index and can be immutable after index creation.
-
Tom Lane authored
This feature allows a unique or pkey constraint to be created using an already-existing unique index. While the constraint isn't very functionally different from the bare index, it's nice to be able to do that for documentation purposes. The main advantage over just issuing a plain ALTER TABLE ADD UNIQUE/PRIMARY KEY is that the index can be created with CREATE INDEX CONCURRENTLY, so that there is not a long interval where the table is locked against updates. On the way, refactor some of the code in DefineIndex() and index_create() so that we don't have to pass through those functions in order to create the index constraint's catalog entries. Also, in parse_utilcmd.c, pass around the ParseState pointer in struct CreateStmtContext to save on notation, and add error location pointers to some error reports that didn't have one before. Gurjeet Singh, reviewed by Steve Singer and Tom Lane
-
Magnus Hagander authored
Fujii Masao
-
Bruce Momjian authored
-
Bruce Momjian authored
it is 8k as expected.
-
Bruce Momjian authored
-
- 24 Jan, 2011 5 commits
-
-
Peter Eisentraut authored
This option was recently introduced, but the documentation in help.c was not updated.
-
Peter Eisentraut authored
This way errors from fetching tuples are correctly reported as errors in the SPI call. While at it, avoid palloc(0). Jan Urbański
-
Peter Eisentraut authored
Instead of checking whether the arglist is NULL and then if its length is 0, do it in one step, and outside of the try/catch block. Jan Urbański
-
Robert Haas authored
Thom Brown and Robert Haas
-
Heikki Linnakangas authored
against 9.0 servers.
-