summaryrefslogtreecommitdiff
path: root/src/test/examples
AgeCommit message (Collapse)Author
2005-10-20Improve testlibpq3.c's example of PQexecParams() usage to include sendingTom Lane
a parameter in binary format. Also, add a TIP explaining how to use casts in the query text to avoid needing to specify parameter types by OID. Also fix bogus spacing --- apparently somebody expanded the tabs in the example programs to 8 spaces instead of 4 when transposing them into SGML.
2005-10-15Standard pgindent run for 8.1.Bruce Momjian
2005-06-21Cause initdb to create a third standard database "postgres", whichTom Lane
unlike template0 and template1 does not have any special status in terms of backend functionality. However, all external utilities such as createuser and createdb now connect to "postgres" instead of template1, and the documentation is changed to encourage people to use "postgres" instead of template1 as a play area. This should fix some longstanding gotchas involving unexpected propagation of database objects by createdb (when you used template1 without understanding the implications), as well as ameliorating the problem that CREATE DATABASE is unhappy if anyone else is connected to template1. Patch by Dave Page, minor editing by Tom Lane. All per recent pghackers discussions.
2005-03-25Have libpgport link before libpq so that PG client applications are moreBruce Momjian
immunte to changes in libpq's usage of pgport between major versions.
2004-12-31Tag appropriate files for rc3PostgreSQL Daemon
Also performed an initial run through of upgrading our Copyright date to extend to 2005 ... first run here was very simple ... change everything where: grep 1996-2004 && the word 'Copyright' ... scanned through the generated list with 'less' first, and after, to make sure that I only picked up the right entries ...
2004-10-01Don't assume PQdb() will return a valid result from a failed connection.Tom Lane
2004-09-22Minor cleanup of libpq/LO examples: fix some memory leaks, update a commentNeil Conway
or two.
2004-08-29Update copyright to 2004.Bruce Momjian
2004-01-07More janitorial work: remove the explicit casting of NULL literals to aNeil Conway
pointer type when it is not necessary to do so. For future reference, casting NULL to a pointer type is only necessary when (a) invoking a function AND either (b) the function has no prototype OR (c) the function is a varargs function.
2003-11-29$Header: -> $PostgreSQL Changes ...PostgreSQL Daemon
2003-09-20Attaching -lpq to LDFLAGS doesn't work, because the generated commandTom Lane
puts that before the .c file name.
2003-08-04Update copyrights to 2003.Bruce Momjian
2003-08-04pgindent run.Bruce Momjian
2003-06-22Bring the libpq example programs into the 21st century.Tom Lane
2003-03-25Use PQfreemem() consistently, and document its use for Notify.Bruce Momjian
Keep PQfreeNotify() around for binary compatibility.
2002-06-20Update copyright to 2002.Bruce Momjian
2001-11-05New pgindent run with fixes suggested by Tom. Patch manually reviewed,Bruce Momjian
initdb/regression tests pass.
2001-10-25pgindent run on all C files. Java run to follow. initdb/regressionBruce Momjian
tests pass.
2001-03-22pgindent run. Make it all clean.Bruce Momjian
2001-02-20Make sure -L and -I's for our source tree are always before system includePeter Eisentraut
or library directories on the command line.
2001-01-24Change Copyright from PostgreSQL, Inc to PostgreSQL Global Development Group.Bruce Momjian
2000-10-24Add some modicum of error detection...Tom Lane
2000-10-24Remove testlo2.c --- there seems to be no difference between this andTom Lane
testlo.c, except it's even skimpier on error checking :-(
2000-10-20Add support for VPATH builds, that is, building somewhere else than in thePeter Eisentraut
source directory. This involves mostly makefiles using $(srcdir) when they might have used ".". (Regression tests don't work with this, yet.) Sort out usage of CPPFLAGS, CFLAGS (and CXXFLAGS). Add "override" keyword in most places, to preserve necessary flags even when the user overrode the flags.
2000-08-31Fix relative path references so that make knowns which dependencies referPeter Eisentraut
to one another. Sort out builddir vs srcdir variable namings. Remove some now obsoleted make variables.
2000-06-17Remove fmgrstamp-h business -- not needed and confusingPeter Eisentraut
Add options to configure to automatically build for Kerberos support; no more editing of make files.
2000-04-25Fix libpq example return valuesBruce Momjian
2000-01-26Add:Bruce Momjian
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc to all files copyright Regents of Berkeley. Man, that's a lot of files.
1999-07-17 Move some system includes into c.h, and remove duplicates.Bruce Momjian
1999-05-25pgindent run over code.Bruce Momjian
1999-05-20overwriting a large object now worksTatsuo Ishii
1999-05-10Change error messages to oids come out as %u and not %d. Change has noBruce Momjian
real affect now.
1999-02-13Change my-function-name-- to my_function_name, and optimizer renames.Bruce Momjian
1999-02-07Add PQresStatus() function to avoid direct access to pgresStatus[] array,Tom Lane
making life easier for Windoids...
1998-09-01OK, folks, here is the pgindent output.Bruce Momjian
1998-06-15Remove un-needed braces around single statements.Bruce Momjian
1998-05-12Cleanups for large objects, so file is trucated on open, fix forBruce Momjian
solaris/spare shared libararies, new error message for postmaster startup, and makefile cleanups.
1998-02-26pgindent run before 6.3 release, with Thomas' requested changes.Bruce Momjian
1997-09-25Massive examples fix from Nicola BernardelliBruce Momjian
1997-09-08Used modified version of indent that understands over 100 typedefs.Bruce Momjian
1997-09-08Another PGINDENT run that changes variable indenting and case label ↵Bruce Momjian
indenting. Also static variable indenting.
1997-09-07Massive commit to run PGINDENT on all *.c and *.h files.Bruce Momjian
1997-08-12Remove more (void) and fix -Wall warnings.Bruce Momjian
1997-07-10Fixes from Jody WinstonBruce Momjian
1997-04-04This commit represents a clean compile with the new templates underMarc G. Fournier
FreeBSD The Makefile(s) have all been cleaned up such that there is a single LDFLAGS vs LD_ADD or LDADD or LDFLAGS or LDFLAGS_BE. The Makefile(s) should be alot more straightforward then they were before...and consistent
1996-11-13Eliminate MKDIR, srcdir, objdir. Centralize setting of LIBPQDIR.Bryan Henderson
1996-11-12End of the make file simplifications.Bryan Henderson
1996-11-04Rename CDEBUG to COPTBruce Momjian
1996-07-09Postgres95 1.01 Distribution - Virgin SourcesPG95-1_01Marc G. Fournier