summaryrefslogtreecommitdiff
path: root/src/interfaces
AgeCommit message (Collapse)Author
2009-10-01Applied patch by Boszormenyi Zoltan <[email protected]> to fix memory leak in ↵Michael Meskes
decimal handling.
2009-09-28Added some explanation about how the parser is generated, taken from an email byMichael Meskes
Zoltan Boszormenyi <[email protected]>.
2009-09-27Make libpq reject non-numeric and out-of-range port numbers with a suitableTom Lane
error message, rather than blundering on and failing with something opaque. Sam Mason
2009-09-22Implement the DO statement to support execution of PL code without havingTom Lane
to create a function for it. Procedural languages now have an additional entry point, namely a function to execute an inline code block. This seemed a better design than trying to hide the transient-ness of the code from the PL. As of this patch, only plpgsql has an inline handler, but probably people will soon write handlers for the other standard PLs. In passing, remove the long-dead LANCOMPILER option of CREATE LANGUAGE. Petr Jelinek
2009-09-18Added patch by Bernd Helmle <[email protected]> that adds a low levelMichael Meskes
function that returns the current transaction status.
2009-09-15Applied patch by Boszormenyi Zoltan <[email protected]> to add missing ";" to ↵Michael Meskes
rule in pgc.l.
2009-09-08Remove outside-the-scanner references to "yyleng".Tom Lane
It seems the flex developers have decided to change yyleng from int to size_t. This has already happened in the latest release of OS X, and will start happening elsewhere once the next release of flex appears. Rather than trying to divine how it's declared in any particular build, let's just remove the one existing not-very-necessary external usage. Back-patch to all supported branches; not so much because users in the field are likely to care about building old branches with cutting-edge flex, as to keep OSX-based buildfarm members from having problems with old branches.
2009-09-03Fixed incorrect memory management.Michael Meskes
2009-09-03Removed some variables no longer needed.Michael Meskes
2009-09-03Do not set connection values if no connection is open.Michael Meskes
2009-09-02Revert Makefile modification that broke the MSVC build.Magnus Hagander
2009-08-28Derived files that are shipped in the distribution used to be built in thePeter Eisentraut
source directory even for out-of-tree builds. They are now alsl built in the build tree. This should be more convenient for certain developers' workflows, and shouldn't really break anything else.
2009-08-27exports.txt needs to use spaces as separators, not tabs, to work properlyMagnus Hagander
with the sed rules.
2009-08-26Update of install-sh, mkinstalldirs, and associated configuryPeter Eisentraut
Update install-sh to that from Autoconf 2.63, plus our Darwin-specific changes (which I simplified a bit). install-sh is now able to install multiple files in one run, so we could simplify our makefiles sometime. install-sh also now has a -d option to create directories, so we don't need mkinstalldirs anymore. Use AC_PROG_MKDIR_P in configure.in, so we can use mkdir -p when available instead of install-sh -d. For consistency with the rest of the world, the corresponding make variable has been renamed from $(mkinstalldirs) to $(MKDIR_P).
2009-08-14Made sure sqlca is reset for declare cursor in Informix mode as pointed out byMichael Meskes
Böszörményi Zoltán <[email protected]>.
2009-08-07Expand test coverage support to entire treePeter Eisentraut
Test coverage support now covers the entire source tree, including contrib, instead of just src/backend. In a related but independent development, the commands make coverage and make coverage-html can be run in any directory. This turned out to be much easier than feared. Besides a few ad hoc fixes to pass the make target down the tree, change all affected makefiles to list their directories in the SUBDIRS variable, changed from variants like DIRS and WANTED_DIRS. MSVC build fix was attempted as well.
2009-08-07Remove unused ecpg variable.Bruce Momjian
2009-08-07Added STRING datatype for Informix compatibility mode. This work isMichael Meskes
based on a patch send in by Böszörményi Zoltán <[email protected]>.
2009-08-05Fixed copyright notice.Michael Meskes
2009-08-04Fix an ecpg test, too. Are we there yet?Tom Lane
2009-08-04Teach PQescapeByteaConn() to use hex format when the target connection isTom Lane
to a server >= 8.5. Per my proposal in discussion of hex-format patch.
2009-08-04Support hex-string input and output for type BYTEA.Tom Lane
Both hex format and the traditional "escape" format are automatically handled on input. The output format is selected by the new GUC variable bytea_output. As committed, bytea_output defaults to HEX, which is an *incompatible change*. We will keep it this way for awhile for testing purposes, but should consider whether to switch to the more backwards-compatible default of ESCAPE before 8.5 is released. Peter Eisentraut
2009-08-01Improve unique-constraint-violation error messages to include the exactTom Lane
values being complained of. In passing, also remove the arbitrary length limitation in the similar error detail message for foreign key violations. Itagaki Takahiro
2009-07-24Avoid extra system calls to block SIGPIPE if the platform provides eitherTom Lane
sockopt(SO_NOSIGPIPE) or the MSG_NOSIGNAL flag to send(). We assume these features are available if (1) the symbol is defined at compile time and (2) the kernel doesn't reject the call at runtime. It might turn out that there are some platforms where (1) and (2) are true and yet the signal isn't really blocked, in which case applications would die on server crash. If that sort of thing gets reported, then we'll have to add additional defenses of some kind. Jeremy Kerr
2009-07-22Fix mismatch in const:ness of parameters.Magnus Hagander
2009-07-14Remove duplicate definition of TYPECAST token.Tom Lane
(Apparently, some but not all versions of Bison will warn about this.)
2009-07-14Tweak the core scanner so that it can be used by plpgsql too.Tom Lane
Changes: Pass in the keyword lookup array instead of having it be hardwired. (This incidentally allows elimination of some duplicate coding in ecpg.) Re-order the token declarations in gram.y so that non-keyword tokens have numbers that won't change when keywords are added or removed. Add ".." and ":=" to the set of tokens recognized by scan.l. (Since these combinations are nowhere legal in core SQL, this does not change anything except the precise wording of the error you get when you write this.)
2009-07-13Stamp minor library version numbers for 8.5; sorry for the delay.Bruce Momjian
2009-07-01Stamp HEAD as 8.5devel.Tom Lane
2009-06-26Translation updates for 8.4 release.Peter Eisentraut
File that are translated less than 80% have been removed, as per new translation team policy.
2009-06-23Properly initialize SSL engines when used from libpq. This is required forMagnus Hagander
most external engines. Per report and initial code from Lars Kanis
2009-06-118.4 pgindent run, with new combined Linux/FreeBSD/MinGW typedef listBruce Momjian
provided by Andrew.
2009-06-10Translation updatesPeter Eisentraut
2009-06-10Arrange that the string "syntax error" generated by bison is translated.Peter Eisentraut
2009-06-03Clean up ecpg's use of mmerror(): const-ify the format argument, add anTom Lane
__attribute__() marker so that gcc can validate the format string against the actual arguments, get rid of overcomplicated and unsafe usage in base_yyerror().
2009-05-27Reverting patch just in case a compiler treats this enum as signed.Michael Meskes
2009-05-26Remove unused declarations of EncodeTimeOnly and DecodeTimeOnly.Tom Lane
2009-05-21Removed comparison of unsigned expression < 0.Michael Meskes
2009-05-20Removed unsigned/signed mismatches.Michael Meskes
2009-05-20More variables gcc moans aboutMichael Meskes
2009-05-20Removed some unneeded variables and comparisonsMichael Meskes
2009-05-18Make pwdfMatchesString() a little more careful about matching * fields.Tom Lane
2009-05-14Translation updatesAlvaro Herrera
2009-05-06Fix ecpg tests for change that disallowed Unicode literals unlessTom Lane
standard_conforming_strings is on.
2009-05-03Fix already-obsolete hint message ... sslverify parameter is no more.Tom Lane
2009-04-24Remove sslverify parameter again, replacing it with two new sslmode values:Magnus Hagander
"verify-ca" and "verify-full". Since "prefer" remains the default, this will make certificate validation off by default, which should lead to less upgrade issues.
2009-04-19Assorted portability fixes for Borland C, from Pavel Golub.Tom Lane
2009-04-14Add libpq error message text on how to handle missing root.crt file.Bruce Momjian
2009-04-09Translation updates for 8.4 betaPeter Eisentraut
2009-04-06Rename the new CREATE DATABASE options to set collation and ctype intoHeikki Linnakangas
LC_COLLATE and LC_CTYPE, per discussion on pgsql-hackers.