OSDN Git Service
Bruce Momjian [Sat, 13 Oct 2001 03:53:45 +0000 (03:53 +0000)]
Update FAQ.
Bruce Momjian [Sat, 13 Oct 2001 03:37:42 +0000 (03:37 +0000)]
Update FAQ.
Bruce Momjian [Sat, 13 Oct 2001 01:35:25 +0000 (01:35 +0000)]
Mention createlang when language not installed, per problem report.
Bruce Momjian [Sat, 13 Oct 2001 01:32:47 +0000 (01:32 +0000)]
Update FAQ.
Bruce Momjian [Fri, 12 Oct 2001 23:34:30 +0000 (23:34 +0000)]
More uppercasing.
Bruce Momjian [Fri, 12 Oct 2001 23:32:34 +0000 (23:32 +0000)]
Uppercase keywords where appropriate.
Tom Lane [Fri, 12 Oct 2001 23:19:09 +0000 (23:19 +0000)]
txtidx datatype for full text indexing with GiST.
From Oleg Bartunov and Teodor Sigaev.
Bruce Momjian [Fri, 12 Oct 2001 21:19:09 +0000 (21:19 +0000)]
Fix reverse FOR loop to work properly, uppercase cleanup in file.
Bruce Momjian [Fri, 12 Oct 2001 17:46:00 +0000 (17:46 +0000)]
Remove locale/multibyte in HISTORY file, for Tatsuo.
Bruce Momjian [Fri, 12 Oct 2001 17:35:10 +0000 (17:35 +0000)]
Add WAL mmap() mention.
Bruce Momjian [Fri, 12 Oct 2001 17:34:36 +0000 (17:34 +0000)]
Update TODO list.
Bruce Momjian [Fri, 12 Oct 2001 17:33:46 +0000 (17:33 +0000)]
Update TODO list.
Bruce Momjian [Fri, 12 Oct 2001 17:28:41 +0000 (17:28 +0000)]
Update TODO list.
Bruce Momjian [Fri, 12 Oct 2001 17:23:04 +0000 (17:23 +0000)]
Update TODO list.
Bruce Momjian [Fri, 12 Oct 2001 16:29:36 +0000 (16:29 +0000)]
Update TODO list.
Bruce Momjian [Fri, 12 Oct 2001 16:14:17 +0000 (16:14 +0000)]
Update TODO list.
Bruce Momjian [Fri, 12 Oct 2001 16:13:48 +0000 (16:13 +0000)]
Update TODO list.
Bruce Momjian [Fri, 12 Oct 2001 16:10:51 +0000 (16:10 +0000)]
Remove mutex mention. Fixed now.
Bruce Momjian [Fri, 12 Oct 2001 16:07:34 +0000 (16:07 +0000)]
Update TODO list.
Hiroshi Inoue [Fri, 12 Oct 2001 09:41:49 +0000 (09:41 +0000)]
Update the version of psqlodbc driver.
Bruce Momjian [Fri, 12 Oct 2001 02:50:48 +0000 (02:50 +0000)]
Update TODO list.
Tatsuo Ishii [Fri, 12 Oct 2001 02:08:34 +0000 (02:08 +0000)]
Add a new function "pg_client_encoding" which returns the current client
side encoding name. This is necessary for client API's such as JDBC
to perform correct encoding conversions. See my email "[HACKERS]
pg_client_encoding" 10 Sep 2001.
Hiroshi Inoue [Fri, 12 Oct 2001 01:08:51 +0000 (01:08 +0000)]
Fix the bug reported by Chris Lee.
Tom Lane [Fri, 12 Oct 2001 00:07:15 +0000 (00:07 +0000)]
Break transformCreateStmt() into multiple routines and make
transformAlterStmt() use these routines, instead of having lots of
duplicate (not to mention should-have-been-duplicate) code.
Adding a column with a CHECK constraint actually works now,
and the tests to reject unsupported DEFAULT and NOT NULL clauses
actually fire now. ALTER TABLE ADD PRIMARY KEY works, modulo
having to have created the column(s) NOT NULL already.
Bruce Momjian [Thu, 11 Oct 2001 21:16:26 +0000 (21:16 +0000)]
Document use of GEQO param in subquery pullups.
Bruce Momjian [Thu, 11 Oct 2001 20:40:38 +0000 (20:40 +0000)]
Update TODO list.
Bruce Momjian [Thu, 11 Oct 2001 20:25:42 +0000 (20:25 +0000)]
Add documention for ecpg -209 error.
Tom Lane [Thu, 11 Oct 2001 18:06:52 +0000 (18:06 +0000)]
Suppress gcc warnings.
Bruce Momjian [Thu, 11 Oct 2001 16:54:18 +0000 (16:54 +0000)]
Tatsuo Ishii <t-ishii@sra.co.jp> writes:
> As you can see, psql reconnect as any user if the password is same as
> foo. Of course this is due to the careless password setting, but I
> think it's better to prompt ANY TIME the user tries to switch to
> another user. Comments?
Yeah, I agree. Looks like a simple change in dbconnect():
/*
* Use old password if no new one given (if you didn't have an old
* one, fine)
*/
if (!pwparam && oldconn)
pwparam = PQpass(oldconn);
to
/*
* Use old password (if any) if no new one given and we are
* reconnecting as same user
*/
if (!pwparam && oldconn && PQuser(oldconn) && userparam &&
strcmp(PQuser(oldconn), userparam) == 0)
pwparam = PQpass(oldconn);
regards, tom lane
Bruce Momjian [Thu, 11 Oct 2001 16:35:50 +0000 (16:35 +0000)]
Update TODO list.
Bruce Momjian [Thu, 11 Oct 2001 16:30:41 +0000 (16:30 +0000)]
Remove mention of "pg_result -list" becuase it is not implemented, per
Tatsuo.
Tatsuo Ishii [Thu, 11 Oct 2001 14:20:35 +0000 (14:20 +0000)]
Add support for ISO-8859-6 to 16
Peter Eisentraut [Wed, 10 Oct 2001 00:02:42 +0000 (00:02 +0000)]
Remove gratuitous discrepancy between extract() and date_part(),
regarding timezone_hour, timezone_minute vs. tz_hour, tz_minute.
Document the former.
Peter Eisentraut [Tue, 9 Oct 2001 22:32:33 +0000 (22:32 +0000)]
Allow optional () after current_user, session_user, user, current_time,
current_timestamp, current_date for ODBC compatibility.
Add more functions to odbc.sql catalog extension, use new CREATE OR
REPLACE FUNCTION.
Document iODBC/unixODBC build options.
Barry Lind [Tue, 9 Oct 2001 20:47:35 +0000 (20:47 +0000)]
This patch fixes a bug introduced in the jdbc bytea support patch.
That patch broke the ability to read data from binary cursors.
--Barry Lind
Modified Files:
pgsql/src/interfaces/jdbc/org/postgresql/Connection.java
pgsql/src/interfaces/jdbc/org/postgresql/ResultSet.java
pgsql/src/interfaces/jdbc/org/postgresql/core/QueryExecutor.java
pgsql/src/interfaces/jdbc/org/postgresql/jdbc1/Connection.java
pgsql/src/interfaces/jdbc/org/postgresql/jdbc1/ResultSet.java
pgsql/src/interfaces/jdbc/org/postgresql/jdbc2/Connection.java
pgsql/src/interfaces/jdbc/org/postgresql/jdbc2/ResultSet.java
pgsql/src/interfaces/jdbc/org/postgresql/jdbc2/UpdateableResultSet.java
Peter Eisentraut [Tue, 9 Oct 2001 18:46:00 +0000 (18:46 +0000)]
Bunch of copy fitting and style sheet tweakage to get decent looking print
output (from pdfjadetex). Also updated instructions to install documentation
processing toolchain.
Tom Lane [Tue, 9 Oct 2001 15:59:56 +0000 (15:59 +0000)]
Change plpgsql compiler so that all elogs are trapped and a suitable
NOTICE added about error location (same method already used by plpgsql
executor). Add checking of pg_proc row xmin/cmin to ensure that
plpgsql functions will be recompiled after they've been modified by
CREATE OR REPLACE FUNCTION.
Tom Lane [Tue, 9 Oct 2001 14:00:22 +0000 (14:00 +0000)]
Fix typo in error message. Noted by laser@zhengmai.com.cn.
Tom Lane [Tue, 9 Oct 2001 04:55:11 +0000 (04:55 +0000)]
Correct some errors in plpgsql examples, as reported by Junichi Kobayasi.
Tom Lane [Tue, 9 Oct 2001 04:15:38 +0000 (04:15 +0000)]
Change plpgsql to depend on main parser's type-declaration grammar,
rather than having its own somewhat half-baked notion of what a type
declaration looks like. This is necessary now to ensure that plpgsql
will think a 'timestamp' variable has the same semantics as 'timestamp'
does in the main SQL grammar; and it should avoid divergences in future.
Tom Lane [Mon, 8 Oct 2001 21:48:51 +0000 (21:48 +0000)]
Another go-round with FigureColname, to produce less surprising results
for nested typecasts. It now produces a column header of 'timestamptz'
for 'SELECT CURRENT_TIMESTAMP', rather than 'text' as it was doing for
awhile there.
Tom Lane [Mon, 8 Oct 2001 21:46:59 +0000 (21:46 +0000)]
Fix transformExpr() to not scribble on its input datastructure while
transforming CASE expressions. This was definitely confusing
FigureColname, and might lead to bad things elsewhere as well.
Tom Lane [Mon, 8 Oct 2001 19:55:07 +0000 (19:55 +0000)]
Fix ruleutils to depend on format_type, rather than having a private
copy of code that knows about displaying types with typmod info.
Needed so that it does the right thing with timestamp datatypes now.
Tom Lane [Mon, 8 Oct 2001 18:40:04 +0000 (18:40 +0000)]
Make ALTER TABLE RENAME COLUMN update column names of indexes that
refer to the renamed column. Brent Verner, with a little help from tgl.
Tom Lane [Mon, 8 Oct 2001 18:16:59 +0000 (18:16 +0000)]
Remove redundant code, update comments, cause CURRENT_TIME to
agree with CURRENT_TIME(n).
Bruce Momjian [Mon, 8 Oct 2001 17:10:11 +0000 (17:10 +0000)]
Update TODO list.
Michael Meskes [Mon, 8 Oct 2001 08:08:42 +0000 (08:08 +0000)]
Fix include file so library is binary compatible again.
Bruce Momjian [Mon, 8 Oct 2001 03:23:37 +0000 (03:23 +0000)]
Update TODO list.
Tom Lane [Sat, 6 Oct 2001 23:21:45 +0000 (23:21 +0000)]
Rearrange fmgr.c and relcache so that it's possible to keep FmgrInfo
lookup info in the relcache for index access method support functions.
This makes a huge difference for dynamically loaded support functions,
and should save a few cycles even for built-in ones. Also tweak dfmgr.c
so that load_external_function is called only once, not twice, when
doing fmgr_info for a dynamically loaded function. All per performance
gripe from Teodor Sigaev, 5-Oct-01.
Bruce Momjian [Sat, 6 Oct 2001 14:41:17 +0000 (14:41 +0000)]
While playing around with trying to add foreign keys to the
\d table display in psql, I noticed that tableinfo.triggers
is not used once it is set.
Greg Sabino Mullane
Peter Eisentraut [Fri, 5 Oct 2001 21:15:38 +0000 (21:15 +0000)]
Fix shared library builds for MacOS X.
Peter Eisentraut [Fri, 5 Oct 2001 21:14:35 +0000 (21:14 +0000)]
Move psql's zh_TW.po to the right place.
Bruce Momjian [Fri, 5 Oct 2001 20:43:09 +0000 (20:43 +0000)]
Update TODO list.
Bruce Momjian [Fri, 5 Oct 2001 19:05:54 +0000 (19:05 +0000)]
files attached are Traditional Chinese translations translated
and modified from Simplified Chinese translations for backend,
pgsql, pg_dump and libpq. I've appended their names to zh_TW.po.
forth
Bruce Momjian [Fri, 5 Oct 2001 19:01:13 +0000 (19:01 +0000)]
Attached is the updated version of the patch, which matches
on words as opposed to lines, which means that all of the
following work in psql:
\d foo \d bar
\d foo; \d bar
\d foo \d bar;;
\d foo; <space>
This one also uses "true and false" and strips semicolons
for the following backslash commands: \C \c \d \e \i \o \s \z
Greg Sabino Mullane
Michael Meskes [Fri, 5 Oct 2001 17:37:07 +0000 (17:37 +0000)]
Make sure each call to ECPGraise is logged.
Tom Lane [Fri, 5 Oct 2001 17:28:13 +0000 (17:28 +0000)]
Further cleanup of dynahash.c API, in pursuit of portability and
readability. Bizarre '(long *) TRUE' return convention is gone,
in favor of just raising an error internally in dynahash.c when
we detect hashtable corruption. HashTableWalk is gone, in favor
of using hash_seq_search directly, since it had no hope of working
with non-LONGALIGNable datatypes. Simplify some other code that was
made undesirably grotty by promixity to HashTableWalk.
Bruce Momjian [Fri, 5 Oct 2001 15:50:11 +0000 (15:50 +0000)]
ouput -> output
Oliver Elphick
Bruce Momjian [Fri, 5 Oct 2001 15:47:48 +0000 (15:47 +0000)]
> > I am quite sure that all AIX Versions accept the CLOBBER method,
> > thus I ask you to apply the following patch, to make it work.
Zeugswetter Andreas SB SD
Michael Meskes [Fri, 5 Oct 2001 06:39:23 +0000 (06:39 +0000)]
Fixed typo in proproc.y
Thomas G. Lockhart [Fri, 5 Oct 2001 06:38:59 +0000 (06:38 +0000)]
Define CEST as a synonym for Central European Savings Time
per Jan Varga <varga@utcru.sk>
Fix up spacing and formatting.
Thomas G. Lockhart [Fri, 5 Oct 2001 06:37:42 +0000 (06:37 +0000)]
Implement explicit date/time precision per SQL99 spec.
Use CAST() mechanism to define CURRENT_TIME and CURRENT_TIMESTAMP.
Tom Lane [Thu, 4 Oct 2001 22:39:34 +0000 (22:39 +0000)]
Don't try to hack pg_description if not superuser. (Really want a
COMMENT ON LARGE OBJECT command instead, but no time for it now.)
Fix some code that would not work with OIDs > 2G.
Peter Eisentraut [Thu, 4 Oct 2001 22:30:14 +0000 (22:30 +0000)]
Finetuning for legalnotice in print output. Add some "ASCII markup" for
text output.
Peter Eisentraut [Thu, 4 Oct 2001 22:28:44 +0000 (22:28 +0000)]
Finetuning for better print formatting
Peter Eisentraut [Thu, 4 Oct 2001 22:27:58 +0000 (22:27 +0000)]
Replace simplelists with itemizedlists for better formatting
Peter Eisentraut [Thu, 4 Oct 2001 22:27:18 +0000 (22:27 +0000)]
Rewording
Peter Eisentraut [Thu, 4 Oct 2001 22:26:27 +0000 (22:26 +0000)]
Fix spacing to get proper URL formatting in print output
Peter Eisentraut [Thu, 4 Oct 2001 22:25:48 +0000 (22:25 +0000)]
Hack for Jade vs TeX interpretation of "--"
Tom Lane [Thu, 4 Oct 2001 22:06:46 +0000 (22:06 +0000)]
Consider interpreting a function call as a trivial (binary-compatible)
type coercion after failing to find an exact match in pg_proc, but before
considering interpretations that involve a function call with one or
more argument type coercions. This avoids surprises wherein what looks
like a type coercion is interpreted as coercing to some third type and
then to the destination type, as in Dave Blasby's bug report of 3-Oct-01.
See subsequent discussion in pghackers.
Tom Lane [Thu, 4 Oct 2001 22:00:10 +0000 (22:00 +0000)]
Ooops, I was a little too enthusiastic about suppressing default
index opclasses; they might be default for some other datatype,
in which case we mustn't suppress 'em.
Tom Lane [Thu, 4 Oct 2001 19:13:55 +0000 (19:13 +0000)]
Plug memory leaks introduced by dynamic-search-path changes.
From Teodor Sigaev.
Tom Lane [Thu, 4 Oct 2001 17:52:24 +0000 (17:52 +0000)]
Make the world safe for atttypmod=0 ... this didn't use to mean anything,
but timestamp now wants it to mean something.
Tom Lane [Thu, 4 Oct 2001 17:10:11 +0000 (17:10 +0000)]
Make current_time deliver a fractional-second answer.
Bruce Momjian [Thu, 4 Oct 2001 15:48:37 +0000 (15:48 +0000)]
elog command need to use unicode conversion too.
Vsevolod Lobko
Bruce Momjian [Thu, 4 Oct 2001 15:47:41 +0000 (15:47 +0000)]
This patch adds reporting of tcl global variable errorInfo
which contains stack trace.
One problem, after this patch errors will generate multiline ERROR
messages. Is it acceptable or do I need split it and generate multiple
singleline messages?
Vsevolod Lobko
Bruce Momjian [Thu, 4 Oct 2001 15:46:49 +0000 (15:46 +0000)]
Attached is a patch which deals with
select 'id' as xxx from table
The issue is:
When the driver gets a data type which does not map into the SQL.Types
it attempts to load the object into a java object. Eventually throwing
an exception indicating that the type "unknown" was not found.
Since the backend defaults "unknown" types to text it was suggested that
the jdbc driver do the same.
This patch does just that.
I have tested it on the above select statement as well as a small
program that serializes, and deserializes a class
Dave Cramer
Bruce Momjian [Thu, 4 Oct 2001 15:45:49 +0000 (15:45 +0000)]
Using strtol() on int8 values (input parameters or result sets) in
plpython would result in numeric overflows causing the backend to
terminate abruptly.
This patch fixes it.
Bradley McLean
Bruce Momjian [Thu, 4 Oct 2001 15:44:14 +0000 (15:44 +0000)]
I've just finished the Chinese NLS support(zh_CN part) files
translation,
the attachement is those four files.
(.tar.gz file, with the directory, root is $PGSRC).
Tested on some Linux platform.
Weiping He
Bruce Momjian [Thu, 4 Oct 2001 15:41:14 +0000 (15:41 +0000)]
1. Implemented binary search in array
Oleg Bartunov
Bruce Momjian [Thu, 4 Oct 2001 15:38:28 +0000 (15:38 +0000)]
Attached please find an initiation of the
NLS effort for the 'postgresql' component.
It includes 'ru.po', which should be added
to /src/backend/po/ and a typical patch for
nls.mk with the 'ru' entry added in
the AVAIL_LANGUAGES.
I'll submit a patch with more translations
for pg_dump once CVSweb becomes available.
CVSweb for me right now is the only way
to get to the source code until my system
is completely setup by the end of the week.
--
Serguei A. Mokhov
Bruce Momjian [Thu, 4 Oct 2001 15:28:33 +0000 (15:28 +0000)]
Remove ChangeLog. No one has defended its existence, and a few people
want it removed.
Tom Lane [Thu, 4 Oct 2001 15:14:22 +0000 (15:14 +0000)]
AdjustTimeForTypmod has the same bug ...
Tom Lane [Thu, 4 Oct 2001 14:51:06 +0000 (14:51 +0000)]
Make regress tests safe for variable-resolution timestamps.
Tom Lane [Thu, 4 Oct 2001 14:49:57 +0000 (14:49 +0000)]
Fix some problems in new variable-resolution-timestamp code.
Bruce Momjian [Thu, 4 Oct 2001 04:46:43 +0000 (04:46 +0000)]
Change some 7.2 mentions to version macro.
Bruce Momjian [Thu, 4 Oct 2001 04:24:24 +0000 (04:24 +0000)]
Update TODO list.
Bruce Momjian [Thu, 4 Oct 2001 04:23:13 +0000 (04:23 +0000)]
Update TODO list.
Tatsuo Ishii [Thu, 4 Oct 2001 04:16:16 +0000 (04:16 +0000)]
Add dependency for regexec.c
Tatsuo Ishii [Thu, 4 Oct 2001 04:13:40 +0000 (04:13 +0000)]
Add dependency for like.c
Tatsuo Ishii [Thu, 4 Oct 2001 02:15:47 +0000 (02:15 +0000)]
Optimization for single byte encodings.
Bruce Momjian [Wed, 3 Oct 2001 22:27:58 +0000 (22:27 +0000)]
Update TODO list.
Tom Lane [Wed, 3 Oct 2001 21:58:28 +0000 (21:58 +0000)]
Consistently use gcc's __attribute__((format)) to check sprintf-style
format strings wherever possible. Remarkably, this exercise didn't
turn up any inconsistencies, but it seems a good idea for the future.
Tom Lane [Wed, 3 Oct 2001 20:54:22 +0000 (20:54 +0000)]
DROP AGGREGATE and COMMENT ON AGGREGATE now accept the expected syntax
'aggname (aggtype)'. The old syntax 'aggname aggtype' is still accepted
for backwards compatibility. Fix pg_dump, which was actually broken for
most cases of user-defined aggregates. Clean up error messages associated
with these commands.
Tom Lane [Wed, 3 Oct 2001 19:24:36 +0000 (19:24 +0000)]
Update error message wording for format_type change.
Tom Lane [Wed, 3 Oct 2001 19:18:42 +0000 (19:18 +0000)]
Remove no-longer-used macros.
Tom Lane [Wed, 3 Oct 2001 18:39:12 +0000 (18:39 +0000)]
Update incorrect expected file. Use 'timestamp without time zone'
datatype in test, to try to avoid any dependency on local time zone.
Bruce Momjian [Wed, 3 Oct 2001 18:38:06 +0000 (18:38 +0000)]
Update for GIST.
Bruce Momjian [Wed, 3 Oct 2001 18:36:03 +0000 (18:36 +0000)]
Update TODO list.
Bruce Momjian [Wed, 3 Oct 2001 18:35:41 +0000 (18:35 +0000)]
Update TODO list.