Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2003-03-18Reimplement create and drop scripts in C, to reduce repetitivePeter Eisentraut
connections, increase robustness, add NLS, and prepare for Windows port. (vacuumdb and clusterdb will follow later.)
2002-10-18Improve formatting of --help output.Peter Eisentraut
2002-10-16Improve appearance of SET command.Bruce Momjian
2002-10-16Fix script to handle autocommit = 'off' by prepending autocommit 'on' toBruce Momjian
the start of the psql commandline. This is better than adding BEGIN/END because it handles multiple queries well, and allows the return code for psql to return the proper value.
2002-09-24Change default privileges for languages and functions to be PUBLIC USAGETom Lane
and PUBLIC EXECUTE, respectively. Per discussion about easing updates from prior versions.
2002-08-22Add a bunch of pseudo-types to replace the behavior formerly associatedTom Lane
with OPAQUE, as per recent pghackers discussion. I still want to do some more work on the 'cstring' pseudo-type, but I'm going to commit the bulk of the changes now before the tree starts shifting under me ...
2002-08-10Make sure all clients have the same understanding of default user namePeter Eisentraut
and database. In particular, make script wrappers understand the PGDATABASE environment variable.
2002-06-20Update copyright to 2002.Bruce Momjian
2002-04-12Allow dropdb and others to use identifiers with spaces; IFS cleanup forBruce Momjian
pg_dumpall.
2002-02-18Privileges on functions and procedural languagesPeter Eisentraut
2002-02-18Fix param handling of create* admin scripts as described months ago.Bruce Momjian
Properly handles default values.
2002-01-03In createlang, make dbname optional, not langname, or rather, makeBruce Momjian
existing code of dbname optional actually work.
2001-09-30These are further fixes for double quotes missing in the various shellBruce Momjian
scripts. Justin Clift
2001-09-22sbasename $0 is now basename "$0"Bruce Momjian
2001-08-13Make LANCOMPILER clause in CREATE LANGUAGE optional. Allow "identifier"Peter Eisentraut
syntax for language names (instead of 'string'). createlang now handles the case where a second language uses the same call handler as an already installed language (e.g., plperl/plperlu). droplang now handles the reverse case, i.e., dropping a language where the call handler is still used by another language. Moreover, droplang can now be used to drop any user-defined language, not just the supplied ones.
2001-06-18Well, after persuading cvsup and cvs that it _is_ possible to have localBruce Momjian
modifiable repositories, I have a clean untrusted plperl patch to offer you :) Highlights: * There's one perl interpreter used for both trusted and untrusted procedures. I do think its unnecessary to keep two perl interpreters around. If someone can break out from trusted "Safe" perl mode, well, they can do what they want already. If someone disagrees, I can change this. * Opcode is not statically loaded anymore. Instead, we load Dynaloader, which then can grab Opcode (and anything else you can 'use') on its own. * Checked to work on FreeBSD 4.3 + perl 5.5.3 , OpenBSD 2.8 + perl5.6.1, RedHat 6.2 + perl 5.5.3 * Uses ExtUtils::Embed to find what options are necessary to link with perl shared libraries * createlang is also updated, it can create untrusted perl using 'plperlu' * Example script (assuming you have Mail::Sendmail installed): create function foo() returns text as ' use Mail::Sendmail; %mail = ( To => q(you@yourname.com), From => q(me@here.com), Message => "This is a very short message" ); sendmail(%mail) or die $Mail::Sendmail::error; return "OK. Log says:\n", $Mail::Sendmail::log; ' language 'plperlu'; Alex Pilosov
2001-05-24Unset PGLIB so it doesn't slip in from the environment.Peter Eisentraut
2001-05-23Make createlang use dynamic loader enhancements (automatic path and suffix).Peter Eisentraut
2001-05-12PL/Python integration: support in create/droplang, add CVS keywords,Peter Eisentraut
remove useless files, beat some sense into Makefile. For me it builds and sort of runs, so it's a start.
2001-05-09Add --echo option to createlang and droplang.Peter Eisentraut
from Oliver Elphick
2001-02-18Add copyright mentions, per Tom Lane.Bruce Momjian
2001-01-21Put quotes around environment variables.Bruce Momjian
2000-11-25Advertise --help (rather than '-?') as help option (problems with csh).Peter Eisentraut
Accept --help even if no general long options support exists.
2000-11-20Revise handling of oldstyle/newstyle functions per recent discussionsTom Lane
in pghackers list. Support for oldstyle internal functions is gone (no longer needed, since conversion is complete) and pg_language entry 'internal' now implies newstyle call convention. pg_language entry 'newC' is gone; both old and newstyle dynamically loaded C functions are now called language 'C'. A newstyle function must be identified by an associated info routine. See src/backend/utils/fmgr/README.
2000-11-13Remove -k unix socketpath option from client side, allow hostname withBruce Momjian
leading slash to behave as a unix socket path.
2000-11-13UUNET is looking into offering PostgreSQL as a part of a managed webBruce Momjian
hosting product, on both shared and dedicated machines. We currently offer Oracle and MySQL, and it would be a nice middle-ground. However, as shipped, PostgreSQL lacks the following features we need that MySQL has: 1. The ability to listen only on a particular IP address. Each hosting customer has their own IP address, on which all of their servers (http, ftp, real media, etc.) run. 2. The ability to place the Unix-domain socket in a mode 700 directory. This allows us to automatically create an empty database, with an empty DBA password, for new or upgrading customers without having to interactively set a DBA password and communicate it to (or from) the customer. This in turn cuts down our install and upgrade times. 3. The ability to connect to the Unix-domain socket from within a change-rooted environment. We run CGI programs chrooted to the user's home directory, which is another reason why we need to be able to specify where the Unix-domain socket is, instead of /tmp. 4. The ability to, if run as root, open a pid file in /var/run as root, and then setuid to the desired user. (mysqld -u can almost do this; I had to patch it, too). The patch below fixes problem 1-3. I plan to address #4, also, but haven't done so yet. These diffs are big enough that they should give the PG development team something to think about in the meantime :-) Also, I'm about to leave for 2 weeks' vacation, so I thought I'd get out what I have, which works (for the problems it tackles), now. With these changes, we can set up and run PostgreSQL with scripts the same way we can with apache or proftpd or mysql. In summary, this patch makes the following enhancements: 1. Adds an environment variable PGUNIXSOCKET, analogous to MYSQL_UNIX_PORT, and command line options -k --unix-socket to the relevant programs. 2. Adds a -h option to postmaster to set the hostname or IP address to listen on instead of the default INADDR_ANY. 3. Extends some library interfaces to support the above. 4. Fixes a few memory leaks in PQconnectdb(). The default behavior is unchanged from stock 7.0.2; if you don't use any of these new features, they don't change the operation. David J. MacKenzie
2000-11-11Make sure shell scripts send error messages to stderr.Peter Eisentraut
Improve help output. Teach droplang to remove 'pltclu'.
2000-09-29New unified regression test driver, test/regress makefile cleanup,Peter Eisentraut
add "check" and "installcheck" targets, straighten out make variable naming of host_os, host_cpu, etc.
2000-09-08Make building scripts kind of consistent in look and feel, kind of immunePeter Eisentraut
to parallel make, kind of resistent to corruption due to incomplete builds.
2000-08-20Substitute libdir into createlang as last resort so one doesn't have to setPeter Eisentraut
PGLIB or use any option anymore.
2000-07-19Added untrusted PL/TclU (pltclu) language. Executes all proceduresJan Wieck
in a non-safe interpreter, so with full OS access! Language is restricted to be used by DB superusers. Added "argisnull n" and "return_null" commands to gain full control over NULL values from new FMGR capabilities. Jan
2000-05-28First round of changes for new fmgr interface. fmgr itself and theTom Lane
key call sites are changed, but most called functions are still oldstyle. An exception is that the PL managers are updated (so, for example, NULL handling now behaves as expected in plperl and plpgsql functions). NOTE initdb is forced due to added column in pg_proc.
2000-05-15cleanupBruce Momjian
2000-05-15cleanupBruce Momjian
2000-05-15Fix createlang -l dbname so it works, update sgml.Bruce Momjian
2000-03-25Old patch from Mark Hollomon to add plperl to createlang's repertoire.Tom Lane
Seems to have slipped through the cracks.
2000-03-14Implement column aliases on views "CREATE VIEW name (collist)".Thomas G. Lockhart
Implement TIME WITH TIME ZONE type (timetz internal type). Remap length() for character strings to CHAR_LENGTH() for SQL92 and to remove the ambiguity with geometric length() functions. Keep length() for character strings for backward compatibility. Shrink stored views by removing internal column name list from visible rte. Implement min(), max() for time and timetz data types. Implement conversion of TIME to INTERVAL. Implement abs(), mod(), fac() for the int8 data type. Rename some math functions to generic names: round(), sqrt(), cbrt(), pow(), etc. Rename NUMERIC power() function to pow(). Fix int2 factorial to calculate result in int4. Enhance the Oracle compatibility function translate() to work with string arguments (from Edwin Ramirez). Modify pg_proc system table to remove OID holes.
2000-01-19another round of user interface cleanupsPeter Eisentraut
removed pg_id fixed a few bugs in the scripts
2000-01-12Fixed a few "fixes" and bugs. Adjusted messages and options to GNU suggestions.Peter Eisentraut
1999-12-17Fix MULTIBYTE handling in string by using strcat.Bruce Momjian
1999-12-16Hi,Bruce Momjian
I sending promised patch with: * getopt_long() - for pg_dump (portable) * and "Usage: " changes in scripts in src/bin/ - this changes are cosmetic only, not change any feature ...etc. All PostgreSQL routines (scripts) support now long options and help's output is alike for all scripts and all support -? or --help. Karel Karel Zak <zakkr@zf.jcu.cz> http://home.zf.jcu.cz/~zakkr/
1999-12-07Okay, that should put us back in sync. These two patches (src & doc) areBruce Momjian
against the sources from one hour ago and contain all the portable and up to date stuff. A few other CVS "householding" things you might want to take care of: * Remove the src/bin/cleardbdir directory * Remove the file src/bin/psql/sql_help.h from the repository, as it is a derived file and is build by the release_prep. Peter Eisentraut
1999-12-05I cleaned those out as well (the echo -n "bug" was in there ;) and movedBruce Momjian
them into the scripts dir. I also added a --list option to show already installed languages. This whole moving and renaming totally confused CVS and my checked out copy got completely fried last night. When you apply the source patch, please make sure that all the directories src/bin/{create|destroy}* as well as vacuumdb, cleardbdir are gone and that all the scripts (7) are in scripts/. Meanwhile I am still puzzled about what happened with the docs patch. Because I don't know what you got now, the second attachment contains the files ref/allfiles.sgml ref/commands.sgml ref/createlang.sgml ref/droplang.sgml doc/src/sgml/Makefile Peter Eisentraut Sernanders väg 10:115