summaryrefslogtreecommitdiff
path: root/src/bin/scripts/createlang.c
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright for the year 2010.Bruce Momjian2010-01-021-2/+2
|
* Add a -w/--no-password option that prevents all password prompts to allPeter Eisentraut2009-02-261-6/+11
| | | | | | programs that have a -W/--password option. In passing, remove the ancient PSQL_ALWAYS_GET_PASSWORDS compile option.
* Sort the output of --help mostly alphabetical, make it align better, makePeter Eisentraut2009-02-251-3/+4
| | | | help of pg_dump and pg_dumpall more similar.
* Update copyright for 2009.Bruce Momjian2009-01-011-2/+2
|
* Append major version number and for libraries soname major version numberPeter Eisentraut2008-12-111-2/+2
| | | | | | | to the gettext domain name, to simplify parallel installations. Also, rename set_text_domain() to pg_bindtextdomain(), because that is what it does.
* In psql, rename trans_* variables to translate_*, for clarity.Bruce Momjian2008-07-141-4/+4
|
* Update copyrights in source tree to 2008.Bruce Momjian2008-01-011-2/+2
|
* Improve the method of localizing column names and other fixed strings inTom Lane2007-12-121-2/+7
| | | | | | | | | | | | | | | psql's \d commands and other uses of printQuery(). Previously we would pass these strings through gettext() and then send them to the server as literals in the SQL query. But the code was not set up to handle doubling of quotes in the strings, causing failure if a translation attempted to use the wrong kind of quote marks, as indeed is now the case for (at least) the French translation of \dFp. Another hazard was that gettext() would translate to whatever encoding was implied by the client's LC_CTYPE setting, which might be different from the client_encoding setting, which would probably cause the server to reject the query as mis-encoded. The new arrangement is to send the untranslated ASCII strings to the server, and do the translations inside printQuery() after the query results come back. Per report from Guillaume Lelarge and subsequent discussion.
* Make documentation of -W options more accurate and uniform.Tom Lane2007-12-111-2/+2
|
* Fix unintended change of output format for createlang/droplang -l. MissedTom Lane2007-08-101-1/+3
| | | | | these uses of printQuery() in FETCH_COUNT patch a year ago :-(. Per report from Tomoaki Sato.
* Update CVS HEAD for 2007 copyright. Back branches are typically notBruce Momjian2007-01-051-2/+2
| | | | back-stamped for this.
* Remove 576 references of include files that were not needed.Bruce Momjian2006-07-141-2/+1
|
* Add PQclear() calls, for completeness (exits shortly anyway).Bruce Momjian2006-05-291-1/+2
|
* Update copyright for 2006. Update scripts.Bruce Momjian2006-03-051-2/+2
|
* Standard pgindent run for 8.1.Bruce Momjian2005-10-151-6/+6
|
* Implement a preliminary 'template' facility for procedural languages,Tom Lane2005-09-051-129/+5
| | | | | | | | | | | | | | as per my recent proposal. For now the template data is hard-wired in proclang.c --- this should be replaced later by a new shared system catalog, but we don't want to force initdb during 8.1 beta. This change lets us cleanly load existing dump files even if they contain outright wrong information about a PL's support functions, such as a wrong path to the shared library or a missing validator function. Also, we can revert the recent kluges to make pg_dump dump PL support functions that are stored in pg_catalog. While at it, I removed the code in pg_regress that replaced $libdir with a hardcoded path for temporary installations. This is no longer needed given our support for relocatable installations.
* Make createlang and droplang proof against weird search_path settingsTom Lane2005-08-151-17/+29
| | | | by forcing search_path to be just pg_catalog.
* This patch implements putting language handlers for the optional PLsBruce Momjian2005-07-101-12/+26
| | | | | | | | | | | | | | | | into pg_catalog rather than public, and supports dumping languages whose handlers are found there. This will make it easier to drop the public schema if desired. Unlike the previous patch, the comments have been updated and I have reformatted some code to meet Alvarro's request to stick to 80 cols. (I actually aghree with this - it makes printing the code much nicer). I think I did the right thing w.r.t versions earlier than 7.3, but I have no real way of checking, so that should be checked by someone with more/older knowledge than me ;-) Andrew Dunstan
* Add a validator function for plperl. Andrew DunstanTom Lane2005-06-221-1/+3
|
* Add -L option to psql to log sessions.Bruce Momjian2005-06-141-2/+2
| | | | Lorne Sunley
* Tag appropriate files for rc3PostgreSQL Daemon2004-12-311-2/+2
| | | | | | | | 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 ...
* Pgindent run for 8.0.Bruce Momjian2004-08-291-2/+2
|
* Update copyright to 2004.Bruce Momjian2004-08-291-2/+2
|
* Add PGETC (for pg_service.conf) and PGLOCALE (for locale dir)Bruce Momjian2004-06-031-2/+2
| | | | | | | | | environment variable processing to libpq. The patch also adds code to our client apps so we set the environment variable directly based on our binary location, unless it is already set. This will allow our applications to emit proper locale messages that are generated in libpq.
* Remove init_nls() functions, call set_pglocale() directly.Bruce Momjian2004-06-011-2/+3
| | | | Add locale to pg_ctl.c.
* Make the locale location relocatable.Bruce Momjian2004-05-251-2/+2
| | | | Adjust get_*_path functions to be limited to MAXPGPATH.
* Rename find_my_binary/find_other_binary toBruce Momjian2004-05-121-2/+2
| | | | | | | | | find_my_exec/find_other_exec(). Remove passing of progname to these functions as they can find that out from argv[0], which they already have. Make get_progname return const char *, and update all progname variables to be const char *.
* Create a validator for plpgsql, so that some minimal syntax checkingTom Lane2004-03-191-4/+30
| | | | | | | | is done at creation time for plpgsql functions. Improve createlang and droplang to support adding/dropping validators for PLs. Initial steps towards producing a syntax error position from plpgsql syntax errors (this part is a work in progress, and will change depending on outcome of current discussions).
* $Header: -> $PostgreSQL Changes ...PostgreSQL Daemon2003-11-291-1/+1
|
* pgindent run.Bruce Momjian2003-08-041-10/+10
|
* Apply message style guide to frontend programs.Peter Eisentraut2003-07-231-5/+5
|
* Rename plpython to plpythonu, and update documentation to reflect itsTom Lane2003-06-301-4/+4
| | | | now-untrusted status.
* Document the -h client flag can use a socket directory as well as a hostBruce Momjian2003-06-111-2/+2
| | | | name.
* Backend support for autocommit removed, per recent discussions. TheTom Lane2003-05-141-2/+2
| | | | | | only remnant of this failed experiment is that the server will take SET AUTOCOMMIT TO ON. Still TODO: provide some client-side autocommit logic in libpq.
* Reimplement create and drop scripts in C, to reduce repetitivePeter Eisentraut2003-03-181-0/+286
connections, increase robustness, add NLS, and prepare for Windows port. (vacuumdb and clusterdb will follow later.)