summaryrefslogtreecommitdiff
path: root/src/interfaces
AgeCommit message (Collapse)Author
2010-01-15Added correct error handling in DESCRIBE statement processing by Boszormenyi ↵Michael Meskes
Zoltan <zb@cybertec.at>.
2010-01-15Applied patch by Boszormenyi Zoltan <zb@cybertec.at> to add DESCRIBE ↵Michael Meskes
[OUTPUT] statement to ecpg.
2010-01-15Introduce Streaming Replication.Heikki Linnakangas
This includes two new kinds of postmaster processes, walsenders and walreceiver. Walreceiver is responsible for connecting to the primary server and streaming WAL to disk, while walsender runs in the primary server and streams WAL from disk to the client. Documentation still needs work, but the basics are there. We will probably pull the replication section to a new chapter later on, as well as the sections describing file-based replication. But let's do that as a separate patch, so that it's easier to see what has been added/changed. This patch also adds a new section to the chapter about FE/BE protocol, documenting the protocol used by walsender/walreceivxer. Bump catalog version because of two new functions, pg_last_xlog_receive_location() and pg_last_xlog_replay_location(), for monitoring the progress of replication. Fujii Masao, with additional hacking by me
2010-01-13Applied Zoltan's patch to make char the default sqlda type.Michael Meskes
Given that undefined types are handled as character strings anyway the type translation function can simply return the correcponding ECPGt_char type.
2010-01-13Fix SQL3 type return value.Michael Meskes
For non-SQL3 types ecpg used to return -Oid. This will break if there are enough Oids to fill the namespace. Therefore we play it safe and return 0 if there is no Oid->SQL3 tyoe mapping available.
2010-01-12Removed ecpg Changelog file that was only there for historical reasons and ↵Michael Meskes
isn't actively used anymore.
2010-01-08Also update ChangerLog file.Michael Meskes
2010-01-07Remove all the special-case code for INT64_IS_BUSTED, per decision thatTom Lane
we're not going to support that anymore. I did keep the 64-bit-CRC-with-32-bit-arithmetic code, since it has a performance excuse to live. It's a bit moot since that's all ifdef'd out, of course.
2010-01-06Replaced int64_t with int64 as Andrew suggested.Michael Meskes
2010-01-06Remove __FUNCTION__ keyword that is not recognized by som compilers.Michael Meskes
2010-01-06Removed test case using nan as float value because printf's output for nan isMichael Meskes
OS specific with some distinguishing between signaling and quiet nans. It's not really importnat for us here anyway.
2010-01-06Removed more inttypes.h stuff.Michael Meskes
2010-01-06Applied Zoltan's patch to remove hardware dependant offset logging andMichael Meskes
superfluous include files.
2010-01-05And another oneMichael Meskes
2010-01-05And another one of the same problem.Michael Meskes
2010-01-05And then forgot to commit the fixed files. ARGH!Michael Meskes
2010-01-05Ah, should read the file completely. I got so used to git that I almost ↵Michael Meskes
forgot about the cvs stuff.
2010-01-05Thrid try. It seems my two checkouts need some cleaning up.Michael Meskes
2010-01-05Still not correct.Michael Meskes
2010-01-05Adjusted CVS headers.Michael Meskes
2010-01-05Applied patch by Boszormenyi Zoltan <zb@cybertec.at> to add sqlda support toMichael Meskes
ecpg in both native and compatiblity mode.
2010-01-05Get rid of the need for manual maintenance of the initial contents ofTom Lane
pg_attribute, by having genbki.pl derive the information from the various catalog header files. This greatly simplifies modification of the "bootstrapped" catalogs. This patch finally kills genbki.sh and Gen_fmgrtab.sh; we now rely entirely on Perl scripts for those build steps. To avoid creating a Perl build dependency where there was not one before, the output files generated by these scripts are now treated as distprep targets, ie, they will be built and shipped in tarballs. But you will need a reasonably modern Perl (probably at least 5.6) if you want to build from a CVS pull. The changes to the MSVC build process are untested, and may well break --- we'll soon find out from the buildfarm. John Naylor, based on ideas from Robert Haas and others
2010-01-02Update copyright for the year 2010.Bruce Momjian
2009-12-31Redefine Datum as uintptr_t, instead of unsigned long.Tom Lane
This is more in keeping with modern practice, and is a first step towards porting to Win64 (which has sizeof(pointer) > sizeof(long)). Tsutomu Yamada, Magnus Hagander, Tom Lane
2009-12-30Set errno to zero before invoking SSL_read or SSL_write. It appears thatTom Lane
at least in some Windows versions, these functions are capable of returning a failure indication without setting errno. That puts us into an infinite loop if the previous value happened to be EINTR. Per report from Brendan Hill. Back-patch to 8.2. We could take it further back, but since this is only known to be an issue on Windows and we don't support Windows before 8.2, it does not seem worth the trouble.
2009-12-19Translation updatesPeter Eisentraut
2009-12-19Update ecpg regression tests to plpgsql installed by default.Alvaro Herrera
2009-12-17Reverting accidently commited changes.Michael Meskes
2009-12-16Fixed auto-prepare to not try preparing statements that are not preparable. BugMichael Meskes
found and solved by Boszormenyi Zoltan <zb@cybertec.at>, some small adjustments by me.
2009-12-09Reject certificates with embedded NULLs in the commonName field. This stopsMagnus Hagander
attacks where an attacker would put <attack>\0<propername> in the field and trick the validation code that the certificate was for <attack>. This is a very low risk attack since it reuqires the attacker to trick the CA into issuing a certificate with an incorrect field, and the common PostgreSQL deployments are with private CAs, and not external ones. Also, default mode in 8.4 does not do any name validation, and is thus also not vulnerable - but the higher security modes are. Backpatch all the way. Even though versions 8.3.x and before didn't have certificate name validation support, they still exposed this field for the user to perform the validation in the application code, and there is no way to detect this problem through that API. Security: CVE-2009-4034
2009-12-02Instead of sending application_name as a SET command after the connectionTom Lane
is made, include it in the startup-packet options. This makes it work more like every other libpq connection option, in particular it now has the same response to RESET ALL as the rest. This also saves one network round trip for new applications using application_name. The cost is that if the server is pre-8.5, it'll reject the startup packet altogether, forcing us to retry the entire connection cycle. But on balance we shouldn't be optimizing that case in preference to the behavior with a new server, especially when doing so creates visible behavioral oddities. Per discussion.
2009-11-29Error when a specified connection service is not found, instead of ignoring itPeter Eisentraut
2009-11-29Remove prefix "ERROR:" from some messages, to make everything consistentPeter Eisentraut
2009-11-28Add support for an application_name parameter, which is displayed inTom Lane
pg_stat_activity and recorded in log entries. Dave Page, reviewed by Andres Freund
2009-11-27Remove */ characters from declare cursor statements before putting them into aMichael Meskes
comment.
2009-11-27If no result is given NOTFOUND should be returned. Check for empty resultMichael Meskes
string too.
2009-11-27Added script to check if all rule re-definition in ecpg.addons are indeed usedMichael Meskes
in the build process. If not the build process will stop with an error message.
2009-11-26Added missing files.Michael Meskes
2009-11-26Forgot to add dynamic cursors to Changelog.Michael Meskes
2009-11-26Synced addon rules after some renamings.Michael Meskes
2009-11-26Added dynamic cursor names to ecpg. Almost the whole patch was done byMichael Meskes
Boszormenyi Zoltan, with only a minor tweak or two from me.
2009-11-24Made function better readable.Michael Meskes
2009-11-23Use diff's -w switch only on Windows, to avoid problems with inconsistentTom Lane
newline representations. Per buildfarm results and subsequent discussion. Sync up a couple of other places that had their own policies.
2009-11-23Add missing library to standalone libpq build on Win32.Magnus Hagander
Hiroshi Saito
2009-11-21Refactor ecpg grammar so that it uses the core grammar's unreserved_keywordTom Lane
list, minus a few specific words that have to be treated specially. This replaces a hard-wired list of keywords that would have needed manual maintenance, and was not getting it. The 8.4 coding was already missing these words, causing ecpg to incorrectly treat them as reserved words: CALLED, CATALOG, DEFINER, ENUM, FOLLOWING, INVOKER, OPTIONS, PARTITION, PRECEDING, RANGE, SECURITY, SERVER, UNBOUNDED, WRAPPER. In HEAD we were additionally missing COMMENTS, FUNCTIONS, SEQUENCES, TABLES. Per gripe from Bosco Rama.
2009-11-11Change "name" nonterminal in cursor-related productions to cursor_name.Alvaro Herrera
This is a preparatory patch for allowing a dynamic cursor name be used in the ECPG grammar. Author: Zoltan Boszormenyi
2009-11-11Support optional FROM/IN in FETCH and MOVEAlvaro Herrera
The main motivation for this is that it's required for Informix compatibility in ECPG. This patch makes the ECPG and core grammars a bit closer to one another for these productions. Author: Zoltan Boszormenyi
2009-11-05Don't treat NEW and OLD as reserved words anymore. For the purposes of rulesTom Lane
it works just as well to have them be ordinary identifiers, and this gets rid of a number of ugly special cases. Plus we aren't interfering with non-rule usage of these names. catversion bump because the names change internally in stored rules.
2009-10-26Simplify a few makefile rules since install-sh can now install multiplePeter Eisentraut
files in one run.
2009-10-20Translations update for 8.5alpha2Peter Eisentraut