- Jun 09, 2010
-
-
Itagaki Takahiro authored
end with "duplicate connection name" errors. Backported to release 7.4.
-
- Jun 03, 2010
-
-
Itagaki Takahiro authored
Now long names are adjusted with truncate_identifier() and NOTICE messages are raised if names are actually truncated. Backported to release 8.0.
-
- Feb 26, 2010
-
-
Bruce Momjian authored
-
- Feb 24, 2010
-
-
Itagaki Takahiro authored
-
- Feb 14, 2010
-
-
Robert Haas authored
The purpose of this change is to eliminate the need for every caller of SearchSysCache, SearchSysCacheCopy, SearchSysCacheExists, GetSysCacheOid, and SearchSysCacheList to know the maximum number of allowable keys for a syscache entry (currently 4). This will make it far easier to increase the maximum number of keys in a future release should we choose to do so, and it makes the code shorter, too. Design and review by Tom Lane.
-
- Feb 04, 2010
-
-
Joe Conway authored
exceed the total number of non-dropped source table fields for dblink_build_sql_*(). Addresses bug report from Rushabh Lathia. Backpatch all the way to the 7.3 branch.
-
- Jan 24, 2010
-
-
Joe Conway authored
(SFRM_Materialize mode) to return tuples. Since we don't return from the dblink function in tuplestore mode, release the PGresult with a PG_CATCH block on error. Also rearrange to share the same code to materialize the tuplestore. Patch by Takahiro Itagaki.
-
- Jan 02, 2010
-
-
Bruce Momjian authored
-
- Dec 29, 2009
-
-
Heikki Linnakangas authored
PL/pgSQL function within an exception handler. Make sure we use the right resource owner when we create the tuplestore to hold returned tuples. Simplify tuplestore API so that the caller doesn't need to be in the right memory context when calling tuplestore_put* functions. tuplestore.c automatically switches to the memory context used when the tuplestore was created. Tuplesort was already modified like this earlier. This patch also removes the now useless MemoryContextSwitch calls from callers. Report by Aleksei on pgsql-bugs on Dec 22 2009. Backpatch to 8.1, like the previous patch that broke this.
-
- Sep 13, 2009
-
-
Joe Conway authored
dblink generates orphaned connections when called with a connection string, fail_on_error = true, and an ERROR occurs. Discovery and patch by Tatsuhito Kasahara. Introduced in 8.4.
-
- Aug 05, 2009
-
-
Joe Conway authored
Adds the ability to retrieve async notifications using dblink, via the addition of the function dblink_get_notify(). Original patch by Marcus Kempe, suggestions by Tom Lane and Alvaro Herrera, patch review and adjustments by Joe Conway.
-
- Jun 11, 2009
-
-
Bruce Momjian authored
provided by Andrew.
-
- Jun 09, 2009
-
-
Tom Lane authored
create an ABI break between 8.3 and 8.4. It is still just a wrapper around the built-in current_query() function, but at a different implementation level. Per my proposal. Note: this change doesn't break 8.4beta installations, since their SQL-language definition of the function still works fine.
-
Joe Conway authored
issue raised by Ruzsinszky Attila and confirmed by others. ----------------------------------------------------------------------
-
- Jun 06, 2009
-
-
Joe Conway authored
and USER MAPPING as method to supply dblink connect parameters. Per mailing list and PGCon discussions.
-
- Jun 02, 2009
-
-
Joe Conway authored
while we're at it per request by Tom Lane. Specifically, don't try to perform dblink_send_query() via dblink_record_internal() -- it was inappropriate and ugly.
-
- Jan 01, 2009
-
-
Bruce Momjian authored
-
- Dec 01, 2008
-
-
Tom Lane authored
Per buildfarm results.
-
- Sep 22, 2008
-
-
Tom Lane authored
conninfo string *before* trying to connect to the remote server, not after. As pointed out by Marko Kreen, in certain not-very-plausible situations this could result in sending a password from the postgres user's .pgpass file, or other places that non-superusers shouldn't have access to, to an untrustworthy remote server. The cleanest fix seems to be to expose libpq's conninfo-string-parsing code so that dblink can check for a password option without duplicating the parsing logic. Joe Conway, with a little cleanup by Tom Lane
-
- Jul 03, 2008
-
-
Joe Conway authored
pains to pass the ERROR message components locally, including using the passed SQLSTATE. Also wrap the passed info in an appropriate CONTEXT message. Addresses complaint by Henry Combrinck. Joe Conway, with much good advice from Tom Lane.
-
- Apr 04, 2008
-
-
Bruce Momjian authored
-
Bruce Momjian authored
At the same time remove dblink/dblink_current_query() as it is no longer necessary *BACKWARD COMPATIBILITY ISSUE* for dblink Tomas Doran
-
- Mar 26, 2008
-
-
Alvaro Herrera authored
tqual.h into heapam.h. This makes all inclusion of tqual.h explicit. I also sorted alphabetically the includes on some source files.
-
- Mar 25, 2008
-
-
Tom Lane authored
strings. This patch introduces four support functions cstring_to_text, cstring_to_text_with_len, text_to_cstring, and text_to_cstring_buffer, and two macros CStringGetTextDatum and TextDatumGetCString. A number of existing macros that provided variants on these themes were removed. Most of the places that need to make such conversions now require just one function or macro call, in place of the multiple notational layers that used to be needed. There are no longer any direct calls of textout or textin, and we got most of the places that were using handmade conversions via memcpy (there may be a few still lurking, though). This commit doesn't make any serious effort to eliminate transient memory leaks caused by detoasting toasted text objects before they reach text_to_cstring. We changed PG_GETARG_TEXT_P to PG_GETARG_TEXT_PP in a few places where it was easy, but much more could be done. Brendan Jurd and Tom Lane
-
- Jan 14, 2008
-
-
Tom Lane authored
Noted while looking for heapscans that might need to start from block zero.
-
- Jan 03, 2008
-
-
Tom Lane authored
failed to cover all the ways in which a connection can be initiated in dblink. Plug the remaining holes. Also, disallow transient connections in functions for which that feature makes no sense (because they are only sensible as part of a sequence of operations on the same connection). Joe Conway Security: CVE-2007-6601
-
- Jan 01, 2008
-
-
Bruce Momjian authored
-
- Nov 15, 2007
-
-
Bruce Momjian authored
-
- Aug 27, 2007
-
-
Tom Lane authored
not all that exciting when the system catalogs are readable by all, but some people try to lock them down, and would not like this sort of end run ...
-
- Jul 08, 2007
-
-
Joe Conway authored
to prevent possible escalation of privilege. Provide new SECURITY DEFINER functions with old behavior, but initially REVOKE ALL from public for these functions. Per list discussion and design proposed by Tom Lane. A different approach will be used for back-branches, committed separately.
-
- Apr 06, 2007
-
-
Tom Lane authored
This commit breaks any code that assumes that the mere act of forming a tuple (without writing it to disk) does not "toast" any fields. While all available regression tests pass, I'm not totally sure that we've fixed every nook and cranny, especially in contrib. Greg Stark with some help from Tom Lane
-
- Feb 07, 2007
-
-
Peter Eisentraut authored
-
- Jan 05, 2007
-
-
Bruce Momjian authored
back-stamped for this.
-
- Oct 19, 2006
-
-
Tom Lane authored
be NULL ... seems an unsafe assumption.
-
- Oct 04, 2006
-
-
Bruce Momjian authored
-
- Sep 02, 2006
-
-
Joe Conway authored
Kai Londenberg, modified by Joe Conway
-
- Jul 11, 2006
-
-
Bruce Momjian authored
-
- Jun 21, 2006
-
-
Joe Conway authored
initially be 0. This is needed as a previous ABORT might have wiped out an automatically opened transaction without maintaining the cursor count. - Fix regression test expected file for the correct ERROR message, which we now get given the above bug fix.
-
- May 31, 2006
-
-
Tom Lane authored
in every shared library.
-
- Mar 11, 2006
-
-
Bruce Momjian authored
-