summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2002-07-21Re-Committed old file.Michael Meskes
2002-07-20Tweak CreateTrigger() so that the OID used in the name of anTom Lane
RI_ConstraintTrigger is the same OID assigned to the pg_trigger row. This reduces consumption of OIDs and may ease debugging.
2002-07-20Code review for SHOW output changes; fix horology expected files forTom Lane
new SHOW output format.
2002-07-20Synced parser yet again.Michael Meskes
Michael
2002-07-20Fix regression tests for new SHOW output.Bruce Momjian
2002-07-20Fix problems caused by code drift of API for without-oids.Bruce Momjian
2002-07-20The attached patch fixes 2 trivial warnings generated by bison 1.35,Bruce Momjian
as a result of Peter's recent CREATE CAST changes. Neil Conway
2002-07-20I can't remember who said they were working on schema related psqlBruce Momjian
changes, but I kept finding myself wishing I could see what schema a table or view exists in when I use \dt, \dv, etc. So, here is a patch which does just that. It sorts on "Schema" first, and "Name" second. It also changes the test for system objects to key off the namespace name starting with 'pg_' instead of the object name. Sample output: test=# create schema testschema; CREATE SCHEMA test=# create view testschema.ts_view as select 1; CREATE VIEW test=# \dv List of relations Name | Schema | Type | Owner --------------------+------------+------+---------- __testpassbyval | public | view | postgres fooview | public | view | postgres master_pg_proc | public | view | postgres rmt_pg_proc | public | view | postgres vw_dblink_get_pkey | public | view | postgres vw_dblink_replace | public | view | postgres ts_view | testschema | view | postgres (7 rows) Joe Conway
2002-07-20> 2. This patch includes the same Table Function API fixes that IBruce Momjian
> submitted on July 9: > > http://archives.postgresql.org/pgsql-patches/2002-07/msg00056.php > > Please disregard that one *if* this one is applied. If this one is > rejected please go ahead with the July 9th patch. The July 9th Table Function API patch mentioned above is now in CVS, so here is an updated version of the guc patch which should apply cleanly against CVS tip. Joe Conway
2002-07-20Hello, i noticed that win32 native stopped working/compiling after the SSL mergeBruce Momjian
. So i took the opportunity to fix some stuff: 1. Made the thing compile (typos & needed definitions) with the new pqsecure_* s tuff, and added fe-secure.c to the win32.mak makefile. 2. Fixed some MULTIBYTE compile errors (when building without MB support). 3. Made it do that you can build with debug info: "nmake -f win32.mak DEBUG=1". 4. Misc small compiler speedup changes. The resulting .dll has been tested in production, and everything seems ok. I CC:ed -hackers because i'm not sure about two things: 1. In libpq-int.h I typedef ssize_t as an int because Visual C (v6.0) doesn't de fine ssize_t. Is that ok, or is there any standard about what type should be use d for ssize_t? 2. To keep the .dll api consistent regarding MULTIBYTE I just return -1 in fe-connect.c:PQsetClientEncoding() instead of taking away the whole function. I wonder if i should do any compares with the conn->client_encoding and return 0 if not hing would have changed (if so how do i check that?). Regards Magnus Naeslund
2002-07-20Add new configure files for missing-oid patch.Bruce Momjian
2002-07-20Patch problems caused by code drift since OID patch creation.Bruce Momjian
2002-07-20Manually apply part of oid patch that didn't apply cleanly.Bruce Momjian
2002-07-20oid is needed, it is added at the end of the struct (after the nullBruce Momjian
bitmap, if present). Per Tom Lane's suggestion the information whether a tuple has an oid or not is carried in the tuple descriptor. For debugging reasons tdhasoid is of type char, not bool. There are predefined values for WITHOID, WITHOUTOID and UNDEFOID. This patch has been generated against a cvs snapshot from last week and I don't expect it to apply cleanly to current sources. While I post it here for public review, I'm working on a new version against a current snapshot. (There's been heavy activity recently; hope to catch up some day ...) This is a long patch; if it is too hard to swallow, I can provide it in smaller pieces: Part 1: Accessor macros Part 2: tdhasoid in TupDesc Part 3: Regression test Part 4: Parameter withoid to heap_addheader Part 5: Eliminate t_oid from HeapTupleHeader Part 2 is the most hairy part because of changes in the executor and even in the parser; the other parts are straightforward. Up to part 4 the patched postmaster stays binary compatible to databases created with an unpatched version. Part 5 is small (100 lines) and finally breaks compatibility. Manfred Koizar
2002-07-20The attached patch fixes a build problem with GEQO when using theBruce Momjian
PX recombination operator, changes some elog() messages from LOG to DEBUG1, puts some debugging functions inside the appropriate #ifdef (not enabled by default), and makes a few other minor cleanups. BTW, the elog() change is motivated by at least one user who has sent a concerned email to -general asking exactly what the "ERX recombination operator" is, and what it is doing to their DBMS. Neil Conway
2002-07-20Add new vacuum regression test files.Bruce Momjian
2002-07-20This patch fixes a regression caused by my recent changes to heapBruce Momjian
tuple header. The fix is based on the thought that HEAP_MOVED_IN is not needed any more as soon as HEAP_XMIN_COMMITTED has been set. So in tqual.c and vacuum.c the HEAP_MOVED bits are cleared when HEAP_XMIN_COMMITTED is set. Vacuum robustness is enhanced by rearranging ifs, so that we have a chance to elog(ERROR, ...) before an assertion fails. A new regression test is included. Manfred Koizar
2002-07-19Small performance improvement --- use indexscan not heapscan to findTom Lane
pg_statistic rows to delete while dropping a relation.
2002-07-19Complete TODO item:Bruce Momjian
* -Add BSD-licensed qsort() for Solaris
2002-07-19Another "$@" cleanup with new syntax, ${1+"$@"}.Bruce Momjian
2002-07-19Fix "$@" to ${1:+"$@"} for older shells.Bruce Momjian
2002-07-19Oops. Too much ifdef out.Tatsuo Ishii
2002-07-19Temporary ifdef out migrating functions to avoid compiler warnings.Tatsuo Ishii
2002-07-19Complete TODO item:Bruce Momjian
* -HOLDER/HOLDERTAB rename to PROCLOCK/PROCLOCKTAG
2002-07-18pg_cast table, and standards-compliant CREATE/DROP CAST commands, plusPeter Eisentraut
extension to create binary compatible casts. Includes dependency tracking as well. pg_proc.proimplicit is now defunct, but will be removed in a separate commit. pg_dump provides a migration path from the previous scheme to declare casts. Dumping binary compatible casts is currently impossible, though.
2002-07-18Complete TODO item:Bruce Momjian
* Merge LockMethodCtl and LockMethodTable into one shared structure (Bruce)
2002-07-18Create directory before installing files.Peter Eisentraut
2002-07-18New depend code doesn't need sequence drop.Bruce Momjian
2002-07-18Sic transit src/utils.Tom Lane
2002-07-18Back out BETWEEN node patch, was causing initdb failure.Bruce Momjian
2002-07-18 New depend code auto-drops sequence, fix copy2.out.Bruce Momjian
2002-07-18Implement DROP SCHEMA. It lacks support for dropping conversions andTom Lane
operator classes, both of which are schema-local and so should really be droppable.
2002-07-18Fix typo (PG_UNICODE -> PG_UTF8)Tatsuo Ishii
2002-07-18Unique and primary key constraints are both dumped using ALTER TABLEBruce Momjian
statements. Unique indexes with CREATE INDEX. Basically, pg_constraint left outer'd to pg_index. Rod Taylor
2002-07-18REVOKE ALL ON FUNCTION nonexistant() FROM PUBLIC;Bruce Momjian
Used to report that GRANT could not find function nonexistant. Rod Taylor
2002-07-18Fix for PgTransaction class to make these visible to C apps:Bruce Momjian
ExecStatusType BeginTransaction(); ExecStatusType EndTransaction(); Piotr Klaban
2002-07-18The attached patch fixes a tiny memory leak in psql, when usingBruce Momjian
the 'expanded' output mode (\x). Neil Conway
2002-07-18here are the copy2.sql and copy2.out files for the new regressionBruce Momjian
tests Brent Verner
2002-07-18The attached patch (against HEAD) implementsBruce Momjian
COPY x (a,d,c,b) from stdin; COPY x (a,c) to stdout; as well as the corresponding changes to pg_dump to use the new functionality. This functionality is not available when using the BINARY option. If a column is not specified in the COPY FROM statement, its default values will be used. In addition to this functionality, I tweaked a couple of the error messages emitted by the new COPY <options> checks. Brent Verner
2002-07-18You made a tiny little type in a comment in parsenodes.h (abotu insteadBruce Momjian
of about). Christopher Kings-Lynne
2002-07-18Finished the Between patch Christopher started.Bruce Momjian
Implements between (symmetric / asymmetric) as a node. Executes the left or right expression once, makes a Const out of the resulting Datum and executes the >=, <= portions out of the Const sets. Of course, the parser does a fair amount of preparatory work for this to happen. Rod Taylor
2002-07-18Here is a patch for the Table Function API. It fixes a bug found by NeilBruce Momjian
Conway (BuildTupleFromCStrings sets NULL for pass-by-value types when intended value is 0). It also implements some other improvements suggested by Neil. Joe Conway
2002-07-18Add comment to file about port files.Bruce Momjian
2002-07-18Fix breakage for pltcl modules. pg_get_enconv_by_encoding() has beenTatsuo Ishii
changed since CREATE CONVERSION supported.
2002-07-18Move libc replacement files from src/backend/port to src/port.Bruce Momjian
2002-07-18Make src/backend/port/*.c file location dependent only on configure.in.Bruce Momjian
2002-07-18I have committed many support files for CREATE CONVERSION. DefaultTatsuo Ishii
conversion procs and conversions are added in initdb. Currently supported conversions are: UTF-8(UNICODE) <--> SQL_ASCII, ISO-8859-1 to 16, EUC_JP, EUC_KR, EUC_CN, EUC_TW, SJIS, BIG5, GBK, GB18030, UHC, JOHAB, TCVN EUC_JP <--> SJIS EUC_TW <--> BIG5 MULE_INTERNAL <--> EUC_JP, SJIS, EUC_TW, BIG5 Note that initial contents of pg_conversion system catalog are created in the initdb process. So doing initdb required is ideal, it's possible to add them to your databases by hand, however. To accomplish this: psql -f your_postgresql_install_path/share/conversion_create.sql your_database So I did not bump up the version in cataversion.h. TODO: Add more conversion procs Add [CASCADE|RESTRICT] to DROP CONVERSION Add tuples to pg_depend Add regression tests Write docs Add SQL99 CONVERT command? -- Tatsuo Ishii
2002-07-16Add more dependency insertions --- this completes the basic pg_dependTom Lane
functionality. Of note: dropping a table that has a SERIAL column defined now drops the associated sequence automatically.
2002-07-16fixed bug in support for timestamp without time zone reported by Yuva ↵Barry Lind
Chandolu (ychandolu@ebates.com)
2002-07-16Oops, sometimes strtol isn't called in pg_atoi, so we do need that badpBruce Momjian
check.