summaryrefslogtreecommitdiff
path: root/contrib/dblink/dblink.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix some copyright notices that weren't updated. Improve copyright toolTom Lane2003-08-041-1/+1
| | | | so it won't miss 'em again.
* pgindent run.Bruce Momjian2003-08-041-82/+81
|
* Error message editing in contrib (mostly by Joe Conway --- thanks Joe!)Tom Lane2003-07-241-88/+162
|
* Please apply attached patch to contrib/dblink. It adds named persistentBruce Momjian2003-06-251-503/+370
| | | | | | connections to dblink. Shridhar Daithanka
* Replace cryptic 'Unknown kind of return type' messages with somethingTom Lane2003-06-151-6/+2
| | | | hopefully a little more useful.
* Replace functional-index facility with expressional indexes. Any columnTom Lane2003-05-281-4/+1
| | | | | | | | | | | of an index can now be a computed expression instead of a simple variable. Restrictions on expressions are the same as for predicates (only immutable functions, no sub-selects). This fixes problems recently introduced with inlining SQL functions, because the inlining transformation is applied to both expression trees so the planner can still match them up. Along the way, improve efficiency of handling index predicates (both predicates and index expressions are now cached by the relcache) and fix 7.3 oversight that didn't record dependencies of predicate expressions.
* Fix inappropriate quoting in dblink. From Joe Conway.Tom Lane2002-11-231-12/+55
|
* Add new palloc0 call as merge of palloc and MemSet(0).Bruce Momjian2002-11-131-2/+1
|
* Back out use of palloc0 in place if palloc/MemSet. Seems constant lenBruce Momjian2002-11-111-1/+2
| | | | to MemSet is a performance boost.
* Merge palloc()/MemSet(0) calls into a single palloc0() call.Bruce Momjian2002-11-101-2/+1
|
* Tweak dblink functions to use int4 arguments instead of int2,Tom Lane2002-09-231-6/+24
| | | | to avoid having to write explicit casts. From Joe Conway.
* Remove include of libpq-int.h --- dblink.c should not be (and was not)Tom Lane2002-09-051-1/+1
| | | | depending on libpq internals.
* Be careful to include postgres.h *before* any system headers, to ensureTom Lane2002-09-051-2/+1
| | | | | | that the right flavors of largefile-related definitions are seen. Most of these changes are probably unnecessary, but better safe than sorry.
* pgindent run.Bruce Momjian2002-09-041-268/+287
|
* last-minute CreateTemplateTupleDesc fixes.Tom Lane2002-09-031-4/+4
|
* Attached is a fairly sizeable update to contrib/dblink. I'd love to getBruce Momjian2002-09-021-291/+803
| | | | | | | | | | | | | | review/feedback if anyone is interested and can spend the time. But I'd also love to get this committed and address changes as incremental patches ;-), so if there are no objections, please apply. Below I'll give a synopsis of the changes. More detailed descriptions are now in a new doc directory under contrib/dblink. There is also a new dblink.test.sql file which will give a pretty good overview of the functions and their use. Joe Conway
* Modify array operations to include array's element type OID in theTom Lane2002-08-261-0/+5
| | | | | | | | | | array header, and to compute sizing and alignment of array elements the same way normal tuple access operations do --- viz, using the tupmacs.h macros att_addlength and att_align. This makes the world safe for arrays of cstrings or intervals, and should make it much easier to write array-type-polymorphic functions; as examples see the cleanups of array_out and contrib/array_iterator. By Joe Conway and Tom Lane.
* ALTER TABLE DROP COLUMN works. Patch by Christopher Kings-Lynne,Tom Lane2002-08-021-33/+57
| | | | | | | | | | code review by Tom Lane. Remaining issues: functions that take or return tuple types are likely to break if one drops (or adds!) a column in the table defining the type. Need to think about what to do here. Along the way: some code review for recent COPY changes; mark system columns attnotnull = true where appropriate, per discussion a month ago.
* Update dblink to work with qualified relation names.Tom Lane2002-05-271-39/+61
| | | | From Joe Conway.
* Restructure indexscan API (index_beginscan, index_getnext) perTom Lane2002-05-201-3/+2
| | | | | | | yesterday's proposal to pghackers. Also remove unnecessary parameters to heap_beginscan, heap_rescan. I modified pg_proc.h to reflect the new numbers of parameters for the AM interface routines, but did not force an initdb because nothing actually looks at those fields.
* Attached is an update to contrib/dblink. Please apply if there are noBruce Momjian2002-04-241-104/+1219
| | | | | | | | | | | | | | | | | | | objections. Major changes: - removed cursor wrap around input sql to allow for remote execution of INSERT/UPDATE/DELETE - dblink now returns a resource id instead of a real pointer - added several utility functions I'm still hoping to add explicit cursor open/fetch/close support before 7.3 is released, but I need a bit more time on that. On a somewhat unrelated topic, I never got any feedback on the unknownin/out patch and the mb_substring patch. Is there anything else I need to do to get those applied? Joe Conway
* pgindent run on all C files. Java run to follow. initdb/regressionBruce Momjian2001-10-251-80/+89
| | | | tests pass.
* Fix some portability problems (get it to compile, at least, on HP's cc)Tom Lane2001-10-151-1/+1
|
* Here's a small patch for dblink:Bruce Momjian2001-06-181-13/+21
| | | | | | | | - fixed dblink invalid pointer causing corrupt elog message - fixed dblink_tok improper handling of null results - fixed examples in README.dblink Joe Conway
* Allow remote query execution (dblink)Bruce Momjian2001-06-141-0/+276
Joe Conway