Commit Graph

  • 41d4548b0f Freebsd update for sgml, from Alfred Perlstein Bruce Momjian 2000-01-18 06:10:54 +00:00
  • 10d7287ab9 Libpq non-blocking mode, from Alfred Perlstein Bruce Momjian 2000-01-18 06:09:24 +00:00
  • b1e891dbd4 Remove compiler warnings Tatsuo Ishii 2000-01-18 05:14:24 +00:00
  • 449b4cc177 Show encoding name rather than encoding id in case of psql -l. Tatsuo Ishii 2000-01-18 05:11:38 +00:00
  • 5eb1d0deb1 Add builtin functions: pg_char_to_encoding() pg_encoding_to_char() Tatsuo Ishii 2000-01-18 05:10:29 +00:00
  • d58fa7611b numeric_in accepts exponents; numeric to int4 rounds; float4/8 to numeric is considerably more robust and accurate than it used to be. Also, get rid of numeric's private allocation freelist, which is no longer a win since Jan rewrote palloc. Tom Lane 2000-01-18 03:44:41 +00:00
  • 8da316291f Fix multibyte support Tatsuo Ishii 2000-01-18 03:01:40 +00:00
  • beba98d14a Adopt for new psql Tatsuo Ishii 2000-01-18 03:00:37 +00:00
  • 28125ed5e0 Updated user interfaces on initdb, initlocation, pg_dump, ipcclean to a GNU-compliant'ish state. Made ipcclean work on Linux. Peter Eisentraut 2000-01-18 00:03:37 +00:00
  • 9e0b463473 setheapoverride() is history. Uses replaced with CommandCounterIncrement() where necessary --- several of them didn't really need it, though. tqual-checking macros simplified accordingly. Tom Lane 2000-01-17 23:57:48 +00:00
  • fb0627d972 Correct minor typos. Tom Lane 2000-01-17 04:47:05 +00:00
  • e3354ab320 Update subquery error message. Bruce Momjian 2000-01-17 04:43:56 +00:00
  • 72cec86235 Add .cvsignore so cvs update doesn't complain about derived files being left around. Tom Lane 2000-01-17 04:38:49 +00:00
  • 2fd4e7762c Modify libpq's pqexpbuffer to eliminate length restriction on how much data can be formatted per call. This requires relying on vsnprintf(). On machines that haven't got vsnprintf, link in the version from backend/port/. Tom Lane 2000-01-17 02:59:46 +00:00
  • 6759f4388f Update TODO list. Bruce Momjian 2000-01-17 02:43:13 +00:00
  • ac4878a060 Pass atttypmod to CoerceTargetExpr, so that it can pass it on to coerce_type, so that the right things happen when coercing a previously- unknown constant to a destination data type. Tom Lane 2000-01-17 02:04:16 +00:00
  • ceca03600e Hmm, numeric array type was missing too. Added. Of the standard types, only 'timestamp' seems not to have an array type; should it be added, or are we going to remove that type for 7.0 anyway? Tom Lane 2000-01-17 01:29:07 +00:00
  • 1500e262b5 Fix for TODO item * spinlock stuck problem when elog(FATAL) and elog(ERROR) inside bufmgr. Hiroshi Inoue 2000-01-17 01:15:19 +00:00
  • 116ba5d814 Update unused_oids script so it works with non-GNU awk --- /* ... */ comment style apparently isn't portable to other awks. Tom Lane 2000-01-17 00:53:11 +00:00
  • 90b883425a Apparently, no one's ever used float4abs(), because it's got incorrect data in its pg_proc entry. abs() doesn't require two arguments, last I heard. Tom Lane 2000-01-17 00:40:51 +00:00
  • 2d4a05d7df Update strings test to reflect the fact that casting to char() will now truncate or pad to the specified length. Tom Lane 2000-01-17 00:16:41 +00:00
  • 49528361f5 Create a new parsetree node type, TypeCast, so that transformation of SQL cast constructs can be performed during expression transformation instead of during parsing. This allows constructs like x::numeric(9,2) and x::int2::float8 to behave as one would expect. Tom Lane 2000-01-17 00:14:49 +00:00
  • e0bd60171a Rearrange coding in COPY so that expansible string buffer for data being read is reused for successive attributes, instead of being deleted and recreated from scratch for each value read in. This reduces palloc/pfree overhead a lot. COPY IN still seems to be noticeably slower than it was in 6.5 --- we need to figure out why. This change takes care of the only major performance loss I can see in copy.c itself, so the performance problem is at a lower level somewhere. Tom Lane 2000-01-16 21:37:50 +00:00
  • d00391e7ac Sigh, I'm an idiot ... I broke the async startup logic a couple days ago, by creating a race condition. It wasn't waiting for select() to say write-ready immediately after connect, which meant that you might get an unhelpful 'broken pipe' error message if connect failed, rather than the intended error message. Tom Lane 2000-01-16 21:18:52 +00:00
  • fdc85f50a3 Put back change to 'connection failed' message formatting that someone overwrote. Tom Lane 2000-01-16 20:34:54 +00:00
  • bb61218c5f Removed lextest, because lex'ed files are now in the distribution. Peter Eisentraut 2000-01-16 20:08:45 +00:00
  • 759fba4873 Included all yacc and lex files into the distribution. Peter Eisentraut 2000-01-16 20:05:00 +00:00
  • a4e1304ed1 Add check that inherited constraints and defaults work. Tom Lane 2000-01-16 19:57:48 +00:00
  • 47a895fe72 Repair breakage of inherited constraint expressions --- needed a CommandCounterIncrement to make new relation visible before trying to parse/deparse the expressions. Also, eliminate unnecessary setheapoverride calls in AddNewAttributeTuples. Tom Lane 2000-01-16 19:57:00 +00:00
  • 7d715ba063 Fix broken FOR UPDATE error message. Tom Lane 2000-01-16 08:21:59 +00:00
  • 1b6b4d40ed Update TODO list. Bruce Momjian 2000-01-16 07:05:35 +00:00
  • faff1b776b Fix passing of atttypmod that Tom found. Bruce Momjian 2000-01-16 05:18:19 +00:00
  • fae5d81c68 Update TODO list. Bruce Momjian 2000-01-16 05:18:07 +00:00
  • 97e82dc72c Clean up pg_dump coredumps caused by change of output formatting for oidvector/int2vector. pg_dump code was assuming that it would see exactly FUNC_MAX_ARGS integers in the string returned by the backend. That's no longer true. (Perhaps that change wasn't such a good idea after all --- will it break any other applications??) Tom Lane 2000-01-16 03:54:58 +00:00
  • 255e07e829 Update TODO list. Bruce Momjian 2000-01-16 02:35:30 +00:00
  • 3a2e08618c Update TODO list. Bruce Momjian 2000-01-16 02:32:13 +00:00
  • 21f0db98ea Back-patch critical fixes for NUMERIC values in plpgsql functions. github/REL6_5_PATCHES REL6_5_PATCHES Tom Lane 2000-01-16 00:45:33 +00:00
  • 8d018f9db8 Back-patch critical fixes for NUMERIC... Tom Lane 2000-01-16 00:44:06 +00:00
  • b0b3187bb4 Add some examples to numeric regress test to verify that recently-fixed problems are indeed fixed. Tom Lane 2000-01-15 23:44:17 +00:00
  • 3cb8c8da68 Clean up problems with rounding/overflow code in NUMERIC, particularly the case wherein zero was rejected for a field like NUMERIC(4,4). Miscellaneous other code beautification efforts. Tom Lane 2000-01-15 23:42:49 +00:00
  • 584e646ad8 Fix a passel of problems with incorrect calls to typinput and typoutput functions, which would lead to trouble with datatypes that paid attention to the typelem or typmod parameters to these functions. In particular, incorrect code in pg_aggregate.c explains the platform-specific failures that have been reported in NUMERIC avg(). Tom Lane 2000-01-15 22:43:25 +00:00
  • 0f4a586821 Update TODO list. Bruce Momjian 2000-01-15 19:32:06 +00:00
  • 5e6004135b Now that new psql is fflush()'ing properly, it emerges that several regress test expected outputs were committed with NOTICEs appearing out of order. Update to correct results. Tom Lane 2000-01-15 19:18:24 +00:00
  • 6ce5e0abb6 Update arrays regress test to reflect fact that several things work now that did not work in 6.5. Tom Lane 2000-01-15 19:11:40 +00:00
  • 2a1bfbce24 - Allow array on int8 - Prevent permissions on indexes - Instituted --enable-multibyte option and tweaked the MB build process where necessary - initdb prompts for superuser password Peter Eisentraut 2000-01-15 18:30:35 +00:00
  • a765db409b Add pgench: a TPC-B like benchmarking tool Tatsuo Ishii 2000-01-15 12:38:09 +00:00
  • bfbd58ce13 Adapt to the changes of libpq(eliminateing using putenv()). Tatsuo Ishii 2000-01-15 05:38:50 +00:00
  • 8fc386a2d8 Eliminate using putenv(). Tatsuo Ishii 2000-01-15 05:37:21 +00:00
  • 6095e36cca Prepare for new psql Tatsuo Ishii 2000-01-15 05:17:45 +00:00
  • 1cd4c14116 Fixed all elog related warnings, as well as a few others. Peter Eisentraut 2000-01-15 02:59:43 +00:00
  • 7c9390caa1 Fixed psql variables vs array syntax, as well as minor psql enhancements Peter Eisentraut 2000-01-14 22:18:03 +00:00
  • 4ceb2d0cb6 * User management commands no longer user pg_exec_query_dest -> more robust Peter Eisentraut 2000-01-14 22:11:38 +00:00
  • 2af360ed1c Clean up some problems in new asynchronous-connection logic in libpq --- mostly, poor response to error conditions. You now actually get to see the postmaster's 'The Data Base System is starting up' message, which you didn't before. I suspect the SSL code is still broken though. Tom Lane 2000-01-14 05:33:15 +00:00
  • 0e6d72db55 Make PSQLexec's behavior on loss of connection more reasonable; report original error before attempting reset, not after. Tom Lane 2000-01-14 05:28:31 +00:00
  • 19ff2e4d55 Make connection-failed messages a little friendlier on 80-column displays... Tom Lane 2000-01-14 04:01:55 +00:00
  • 6256fcb927 Remove redundant and now-incorrect declaration of pstrdup. Tom Lane 2000-01-14 01:36:42 +00:00
  • bb7e85fb85 Update TODO list. Bruce Momjian 2000-01-14 01:10:22 +00:00
  • 9b003129fe Bump catversion to ensure initdb. Tom Lane 2000-01-14 00:53:50 +00:00
  • 338fd40bfc Revise quoting conventions in outfuncs/readfuncs so that nodeRead doesn't choke on relation or attribute names containing spaces, quotes, or other special characters. This fixes a TODO item. It also forces initdb, since stored rule strings change. Tom Lane 2000-01-14 00:53:21 +00:00
  • 46a28f1b14 Fixed everything in and surrounding createdb and dropdb to make it more error-proof. Rearranged some old code and removed dead sections. Peter Eisentraut 2000-01-13 18:26:18 +00:00
  • bfa3b59d25 initdb didn't load pg_description Peter Eisentraut 2000-01-13 18:22:10 +00:00
  • e419b48217 Update TODO list. Bruce Momjian 2000-01-13 13:22:05 +00:00
  • 3af969d4a0 Update TODO list. Bruce Momjian 2000-01-13 03:39:45 +00:00
  • af53b624f0 Update TODO list. Bruce Momjian 2000-01-13 03:36:42 +00:00
  • 326a69deeb Update TODO list. Bruce Momjian 2000-01-13 03:06:29 +00:00
  • e589b9e821 Update TODO list. Bruce Momjian 2000-01-13 02:38:21 +00:00
  • 7c25123df4 Update TODO list. Bruce Momjian 2000-01-13 01:57:04 +00:00
  • c6035cd173 Update TODO list. Bruce Momjian 2000-01-13 01:48:46 +00:00
  • 1f9d535aca Add UDC (User Defined Characters) support to SJIS/EUC_JP conversion Update README so that it reflects all source file names Add an entry to make sjistest (testing between SJIS/EUC_JP conversion) Tatsuo Ishii 2000-01-13 01:08:14 +00:00
  • f6689a328f Fixed a few "fixes" and bugs. Adjusted messages and options to GNU suggestions. Peter Eisentraut 2000-01-12 19:36:36 +00:00
  • 267c6c7f06 Multi-byte case fix by Oliver Elphick (olly@lfix.co.uk) Tatsuo Ishii 2000-01-12 13:08:55 +00:00
  • 0b14b0c87e Use fmgr_array_args() to avoid dependency on FUNC_MAX_ARGS. Tom Lane 2000-01-12 05:28:47 +00:00
  • 72ed6ff5ad In PQfn(), defend against too many args, and avoid dependency on FUNC_MAX_ARGS by using an appropriate fmgr() call. Tom Lane 2000-01-12 05:27:20 +00:00
  • ef899c7f62 RemoveFunction didn't defend against too many args. Tom Lane 2000-01-12 05:25:09 +00:00
  • 488f315913 Defend against > INDEX_MAX_KEYS keys in an index. Tom Lane 2000-01-12 05:04:42 +00:00
  • 8acc568a6b CommentProc was careless about too many arguments. Tom Lane 2000-01-12 04:59:41 +00:00
  • 421d4f9bd7 Put back erroneously removed zeroing of sentinel elements in indexkeys, classlist arrays. Tom Lane 2000-01-12 00:53:21 +00:00
  • 142ce7939d Update TODO list. Bruce Momjian 2000-01-11 12:11:20 +00:00
  • b9d832f6ef Make FUNC_MAX_ARGS equal INDEX_MAX_KEYS, as it should. Set default INDEX_MAX_KEYS to 16. Document minimum safe value is 9. Tom Lane 2000-01-11 05:58:55 +00:00
  • f1e1634e72 oid8 => oidvector in alter_table regress test Tom Lane 2000-01-11 05:56:33 +00:00
  • 41f17e676f Another FUNC_MAX_ARGS tweak. Tom Lane 2000-01-11 05:41:49 +00:00
  • ac295f43f5 Update struct Trigger definition. Tom Lane 2000-01-11 05:37:11 +00:00
  • fa3aa5e1bb Wrong boundary condition on number-of-args check. Tom Lane 2000-01-11 05:22:25 +00:00
  • cc2e19ef9a Ah-hah, there are attribute size constants lurking here too. Tom Lane 2000-01-11 05:18:42 +00:00
  • 5c2fb2a1e2 Use symbolic INDEX_MAX_KEYS in pg_type entries for oidvector and int2vector. Tom Lane 2000-01-11 04:02:28 +00:00
  • c2fa275d20 Correct hardwired type information in bootstrap. Tom Lane 2000-01-11 04:00:30 +00:00
  • 7bc1fbe100 Remove no-longer-used symbols. Tom Lane 2000-01-11 03:59:31 +00:00
  • bd52f4bffd More cleanups. Still doesn't work. Bruce Momjian 2000-01-11 03:33:14 +00:00
  • aadd14b8f2 More cleanups. Bruce Momjian 2000-01-11 02:46:48 +00:00
  • 401e6de7ee More fixes, but still need +1 for FUNC_MAX_ARGS Bruce Momjian 2000-01-11 02:30:06 +00:00
  • bf49f0849d Remove outdated comment about 8 arguments. Tom Lane 2000-01-11 01:42:08 +00:00
  • ac401e06c5 Change oid8/int28 -> oidvector/int2vector. Tom Lane 2000-01-11 01:40:04 +00:00
  • a97caacb5e Fix initdb so it works, but still only for 8. Bruce Momjian 2000-01-10 23:03:41 +00:00
  • 182162a388 Update type stuff. Bruce Momjian 2000-01-10 20:46:23 +00:00
  • dd8b0e67ec Cleanup for func args > 8. Bruce Momjian 2000-01-10 20:23:31 +00:00
  • 2d920dc717 More updates for function call interface > 8. Bruce Momjian 2000-01-10 18:27:41 +00:00
  • 0bdd0cdd98 Update fmgr to allow 32 arguments. Bruce Momjian 2000-01-10 18:18:30 +00:00
  • 8a093d0ae3 Make number of args to a function configurable. Bruce Momjian 2000-01-10 17:14:46 +00:00
  • 6456b17bc1 Rename oid8 -> oidvector and int28 -> int2vector. Cleanup of *out functions. Bruce Momjian 2000-01-10 16:13:23 +00:00
  • 3f03f74f36 Update int28out and out8out and _in_ functions to handle trailing zeros properly. Bruce Momjian 2000-01-10 15:41:34 +00:00