summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2003-06-25> I've worked with the Pl/Python code in the past and will see about removingBruce Momjian
> rexec and making it an untrusted language. Last time I looked, it didn't > look particularly difficult. I've set aside some time next week, so stay > tuned. Attached is a patch that removes all of the RExec code from plpython from the current PostgreSQL CVS. In addition, plpython needs to be changed to an untrusted language in createlang. Please let me know if there are any problems. Kevin Jacobs
2003-06-25Attached is a patch that provides *VERY* limited support for multipleBruce Momjian
slave servers. I haven't tested it very well, so use at your own risk (and I recommend against using it in production). Basically, I have a central database server that has 4 summary tables inside it replicated to a remote slave (these database tables are for my mail server authentication, so these are replicated to another server tuned for many connections, and so I don't have postgres connections opened straight to my back-end database server). Unfortunately, I also wanted to implement a replication database server for hot-backups. I realized, too late, that the replication process is pretty greedy and will try to replicate all tables marked as a "MasterAddTable". To make a long story, I made a patch to RServ.pm and Replicate that allows you to specify, on the command line, a list of tables that you want to replicate...it'll ignore all others. I haven't finished, since this has to be integrated with CleanLog for instance, but this should (and does) suffice for the moment. I have yet to test it with two slaves, but at least my mail server replication database now works (it was failing every time it tried to replicate, for a variety of reasons). Anyone have any suggestions on how to improve on this? (or, if someone more familiar with this code wants to take the ball and run with it, you're welcome to). -- Michael A Nachbaur <mike@nachbaur.com>
2003-06-25Here's a small patch to pg_hba.conf.sample that explains the use of CIDRBruce Momjian
addresses. Andrew Dunstan
2003-06-25Create <link> entries for the foreign keys in the system catalogBruce Momjian
chapter. I got tired of hitting the 'up' link, then finding the table in the table of contents, and following it back down. Rod Taylor
2003-06-25client-auth.sgml references a renamed ID in runtime.sgmlBruce Momjian
Josh Berkus
2003-06-25Attached is the fully corrected version of the re-ording patch forBruce Momjian
Runtime.sgml and dependant files. Josh Berkus
2003-06-25- Corrections for tables, columns with uppercase charactersBruce Momjian
- Don't attempt to convert partial or expressional unique indexes - Don't attempt to convert unique indexes based on a non-default opclasses - Untested prevention of conversion of non-btree indexes unique indexes. Untested as postgresql doesn't allow hash, gist, or rtree based indexes to be unique. rbt=# create unique index t on a using hash (col); ERROR: DefineIndex: access method "hash" does not support UNIQUE indexes rbt=# create unique index t on a using gist (col); ERROR: DefineIndex: access method "gist" does not support UNIQUE indexes rbt=# select version(); version ------------------------------------------------------------------------ PostgreSQL 7.4devel on i386-unknown-freebsd4.8, compiled by GCC 2.95.4 Rod Taylor
2003-06-25Please apply attached patch to contrib/dblink. It adds named persistentBruce Momjian
connections to dblink. Shridhar Daithanka
2003-06-25This is a bug in python interface module,Bruce Momjian
postgresql-7.3.3/src/interfaces/python/pg.py. _quote() function fails due to integer overflow if input d is larger than max integer. In the case where the column type is "BIGINT", the input d may very well be larger than max integer while its type, t, is labeled 'int'. The conversion on line 19, return "%d" % int(d), will fail due to "OverflowError: long int too large to convert to int". Please describe a way to repeat the problem. Please try to provide a concise reproducible example, if at all possible: ---------------------------------------------------------------------- [1] create a table with a column type 'BIGINT'. [2] use pg.DB.insert() to insert a value that is larger than max integer If you know how this problem might be fixed, list the solution below: --------------------------------------------------------------------- Just changing the conversion at line 19 of pg.py to long(d) instead of int(d) should fix it. The following is a patch: Chih-Hao Huang
2003-06-25>> If a transaction marks a tuple for update and later commits withoutBruce Momjian
>> actually having updated the tuple, [...] can we simply >> set the HEAP_XMAX_INVALID hint bit of the tuple? > >AFAICS this is a reasonable thing to do. Thanks for the confirmation. Here's a patch which also contains some more noncritical changes to tqual.c: . make code more readable by introducing local variables for xvac . no longer two separate branches for aborted and crashed. The actions were the same in all cases. Manfred Koizar
2003-06-24Most of the synopsis areas for DROP commands use "name" as theBruce Momjian
identifier, while some areas do not. The attached converts be below to "name": conversion_name index_name The below have an existing, initdb supplied, entity named "name". As such, it could be confusing for the reader to see that identifier used in the example. domainname typename Rod Taylor
2003-06-24Revert ORDBMS change, per Peter.Bruce Momjian
2003-06-24Alter query.sgml to mention PostgreSQL as an ORDBMS. This falls in lineBruce Momjian
with advocacy and 'portal' websites. Link to createdb / dropdb from the tutorial page about create / dropdb. A pair of notes were asking about more info... Rod Taylor
2003-06-24In an attempt to simplify my life I'm submitting this patch thatBruce Momjian
restructures the deferred trigger queue. The fundamental change is to put all the static variables to hold the deferred triggers in a single structure. Alvaro Herrera
2003-06-24Add x86_64 support for spinlocks.Bruce Momjian
Jeffrey W. Baker
2003-06-24Small patch to link to the proper place in the "runtime" file,Bruce Momjian
and to add the "schemaname" column to the description of the pg_stats view. Greg Sabino Mullane
2003-06-24Array mega-patch.Bruce Momjian
Joe Conway
2003-06-24Done:Bruce Momjian
> * -Add IPv6 capability to INET/CIDR types
2003-06-24Jim C. Nasby wrote:Bruce Momjian
> Second argument to metaphone is suposed to set the limit on the > number of characters to return, but it breaks on some phrases: > > usps=# select metaphone(a,3),metaphone(a,4),metaphone(a,20) from > (select 'Hello world'::varchar AS a) a; > HLW | HLWR | HLWRLT > > usps=# select metaphone(a,3),metaphone(a,4),metaphone(a,20) from > (select 'A A COMEAUX MEMORIAL'::varchar AS a) a; > AKM | AKMKS | AKMKSMMRL > > In every case I've found that does this, the 4th and 5th letters are > always 'KS'. Nice catch. There was a bug in the original metaphone algorithm from CPAN. Patch attached (while I was at it I updated my email address, changed the copyright to PGDG, and removed an unnecessary palloc). Here's how it looks now: regression=# select metaphone(a,4) from (select 'A A COMEAUX MEMORIAL'::varchar AS a) a; metaphone ----------- AKMK (1 row) regression=# select metaphone(a,5) from (select 'A A COMEAUX MEMORIAL'::varchar AS a) a; metaphone ----------- AKMKS (1 row) Joe Conway
2003-06-24Prevent compiler warning from sprintf in recent ipv6 patch.Bruce Momjian
2003-06-24 Add ipv6 address parsing support to 'inet' and 'cidr' data types.Bruce Momjian
Regression tests for IPv6 operations added. Documentation updated to document IPv6 bits. Stop treating IPv4 as an "unsigned int" and IPv6 as an array of characters. Instead, always use the array of characters so we can have one function fits all. This makes bitncmp(), addressOK(), and several other functions "just work" on both address families. add family() function which returns integer 4 or 6 for IPv4 or IPv6. (See examples below) Note that to add this new function you will need to dump/initdb/reload or find the correct magic to add the function to the postgresql function catalogs. IPv4 addresses always sort before IPv6. On disk we use AF_INET for IPv4, and AF_INET+1 for IPv6 addresses. This prevents the need for a dump and reload, but lets IPv6 parsing work on machines without AF_INET6. To select all IPv4 addresses from a table: select * from foo where family(addr) = 4 ... Order by and other bits should all work. Michael Graff
2003-06-24Update:Bruce Momjian
< * Have SELECT '13 minutes'::interval display zero seconds > * Have SELECT '13 minutes'::interval display zero seconds in ISO datestyle
2003-06-24Add -L../ecpglib -lecpg for Cygwin compile.Bruce Momjian
2003-06-24Add:Bruce Momjian
> * Have SELECT '13 minutes'::interval display zero seconds
2003-06-24Add:Bruce Momjian
> * Allow the regression tests to start postmaster with -i so the tests > can be run on systems that don't support unix-domain sockets
2003-06-24Add:Bruce Momjian
> * Rename /scripts directory because they are all C programs now
2003-06-24Add:Bruce Momjian
< > o Allow ALTER TABLE to modify column lengths and change to binary > compatible types
2003-06-24Add:Bruce Momjian
> * Modify pg_get_triggerdef() to take a boolean to pretty-print, > and use that as part of pg_dump along with psql >
2003-06-24Update:Bruce Momjian
* Allow UPDATE, DELETE to handle table aliases for self-joins [delete]
2003-06-24typedef sa_family_t for cygwin.Bruce Momjian
2003-06-24Add:Bruce Momjian
> o Allow columns to be reordered using ALTER ... POSITION i col1 [,col2]; > have SELECT * and INSERT honor such ordering
2003-06-24Do not include:Bruce Momjian
#include <pwd.h> #include <netdb.h> in MS CC/Borland builds.
2003-06-23Remove references to sa_family_t, except when SOCKADDR_STORAGE requiresBruce Momjian
it. Also handle __ss_family as a synonym for ss_family. Kurt Roeckx
2003-06-23Add with '?':Bruce Momjian
> * Have initdb set DateStyle based on locale?
2003-06-23Add mention that the grep's have to be adjusted in pgtest.Bruce Momjian
2003-06-23Remove '?':Bruce Momjian
< from making invalid dates valid? > from making invalid dates valid
2003-06-23Change pqInternalNotice to accept a format string and args instead ofTom Lane
just a preformatted message; per suggestion by Sean Chittenden.
2003-06-23Remove crypt.h from fe-connect.c --- not needed, and caused problems onBruce Momjian
Solaris with Open SSL version 0.9.7b
2003-06-23Update Russian version of FAQ.Bruce Momjian
2003-06-23Add:Bruce Momjian
> * Exit postmaster if postgresql.conf can not be opened
2003-06-23Add:Bruce Momjian
* Allow SSL-enabled clients to turn off SSL transfers
2003-06-23Add:Bruce Momjian
> * Change CVS $Id$ to $PostgreSQL$
2003-06-22Revise hash join and hash aggregation code to use the same datatype-Tom Lane
specific hash functions used by hash indexes, rather than the old not-datatype-aware ComputeHashFunc routine. This makes it safe to do hash joining on several datatypes that previously couldn't use hashing. The sets of datatypes that are hash indexable and hash joinable are now exactly the same, whereas before each had some that weren't in the other.
2003-06-22Fix some index entries.Tom Lane
2003-06-22Adjust chapter ordering in Internals part to something that seems moreTom Lane
reasonable.
2003-06-22Added missing terminating '\0' char for data put into char *.Michael Meskes
2003-06-22Remove a lot of desperately obsolete material (which was all out of sight,Tom Lane
out of mind, because it'd been commented out years ago). Try to bring the remains up to a reasonable level of currency, and give it all approximately the same high level of abstraction.
2003-06-22Add question mark to item:Bruce Momjian
< from making invalid dates valid > from making invalid dates valid?
2003-06-22Add:Bruce Momjian
> * Allow current datestyle to restrict dates; prevent month/day swapping > from making invalid dates valid > * Prevent month/day swapping of ISO dates to make invalid dates valid
2003-06-22Add pgtest script.Bruce Momjian