git.postgresql.org Git - postgresql.git/log
Tom Lane [2004年3月15日 01:13:41 +0000 (01:13 +0000)]
Remove grotty special-case code in coerce_to_target_type() that
implemented casts to varchar and bpchar using a cast-to-text function.
This is a holdover from before we had pg_cast; it now makes more sense
to just list these casts in pg_cast. While at it, add pg_cast entries
for the other direction (casts from varchar/bpchar) where feasible.
Update Solaris thread flags, per Jim Seymour
Tom Lane [2004年3月14日 23:41:27 +0000 (23:41 +0000)]
Tweak planner so that index expressions and predicates are matched to
queries without regard to whether coercions are stated explicitly or
implicitly. Per suggestion from Stephan Szabo.
Tom Lane [2004年3月14日 22:00:54 +0000 (22:00 +0000)]
Fix error in termination of COPY IN mode when using V2 protocol.
Report and fix per ljb, 8-Mar-04.
Mark linux as thread-enabled with new 7.5 tests.
Fix ecpg_sqlca_key_destructor to return void.
> (I also see some post-7.4.1 changes in src/template/solaris, so you
> possibly should look there too.)
[snip]
>
I think I have the fix for part of it, but this remains...
gcc -O2 -fno-strict-aliasing -Wall -Wmissing-prototypes
-Wmissing-declarations -fPIC -I. -I../../../src/include
-D_POSIX_PTHREAD_SEMANTICS -DFRONTEND
-DSYSCONFDIR='"/usr/local/pgsql/etc"' -c -o thread.o thread.c
thread.c: In function `pqGethostbyname':
thread.c:189: error: `resbuf' undeclared (first use in this
function)
Looking at src/port/thread.c, line 189, it looks like somebody typo'd.
Looks like that second parameter should be "resultbuf", not "resbuf"?
Jim Seymour
- Fixed Informix compat math functions to cope with the situations
where one argument takes the result.
- Applied thread patches by Lee Kindness
Portability fixes and bug fixes for recent floating point input changes.
In particular, don't depend on strtod() to accept 'NaN' and 'Infinity'
inputs (while this is required by C99, not all platforms are compliant
with that yet). Also, don't require glibc's behavior from isinf():
it seems that on a lot of platforms isinf() does not itself distinguish
between negative and positive infinity.
Tom Lane [2004年3月14日 04:25:18 +0000 (04:25 +0000)]
Teach psql to show the location of syntax errors visually, per recent
discussions. Patch by Fabien Coelho and Tom Lane. Still needs to be
taught about multi-screen-column kanji characters; Tatsuo has promised
to provide the needed infrastructure for that.
Rename README's to match directory names. Mention copyright matches
PostgreSQL's.
Tom Lane [2004年3月14日 01:58:41 +0000 (01:58 +0000)]
Arrange to emit a CONTEXT: SQL function "foo" entry in an error
message that is reporting a prechecking error in a SQL function.
This is to cue client-side code that the syntax error position,
if any, is with respect to the function body and not the outer command.
Done:
> * -Issue NOTICE if foreign key data requires costly test to match primary key
Tom Lane [2004年3月13日 22:09:14 +0000 (22:09 +0000)]
Generate a WARNING when the column types in a foreign key constraint are
incompatible enough to prevent indexscanning the referenced table. Also,
improve the error message that pops out when we can't implement the FK at
all for lack of a usable equality operator. Fabien Coelho, with some review
by Tom Lane.
Tom Lane [2004年3月13日 00:54:10 +0000 (00:54 +0000)]
Repair memory leakage introduced into the non-hashed aggregate case by
7.4 rewrite for hashed aggregate support. If the transition data type
is pass-by-reference, the transValue must be pfreed when starting a new
group boundary, else we have a one-value-per-group leakage. Thanks to
Rae Steining for providing a reproducible test case.
Translation updates
Fixes recent changes to test. For immediate application.
[ Note: int8-exp-three-digits.out needs the same treatment]
Will review recent changes for float4/8 and implications for win32 when
I get a chance.
Claudio Natoli
Update FAQ with current release version.
Update Russian FAQ, Viktor Vislobokov
Translation updates
Translation updates
Rename incorrect references to nonblock.c to noblock.c. Claudio.
Fix a typo in the documentation for geqo_effort.
Improve documentation for the newly-added NOWAIT clause of LOCK TABLE.
Allow 'Infinity' and '-Infinity' as input to the float4 and float8
types. Update the regression tests and the documentation to reflect
this. Remove the UNSAFE_FLOATS #ifdef.
This is only half the story: we still unconditionally reject
floating point operations that result in +/- infinity. See
recent thread on -hackers for more information.
Translation updates
Document the SSL and Kerberos are not thread-safe.
Revise int2/int4/int8/float4/float8 input routines to allow for
any amount of leading or trailing whitespace (where "whitespace"
is defined by isspace()). This is for SQL conformance, as well
as consistency with other numeric types (e.g. oid, numeric).
Also refactor pg_atoi() to avoid looking at errno where not
necessary, and add a bunch of regression tests for the input
to these types.
Add NOWAIT option to LOCK command
Move non-blocking code into its own /port file, for code clarity.
Fix a typo.
Improvements to README.CVS
Remove HISTORY and INSTALL. Have them generated by the tarball scripts.
Add README.CVS to help CVS folks find this information.
Neil Conway [Tue, 9 Mar 2004 23:15:47 +0000 (23:15 +0000)]
Tweak some text to avoid using <command>SET</command> as a verb, per
suggestion from Peter E.
Add comment for Win32.
Remove blank line in Makefile.
Add HISTORY/INSTALL clean target to 7.4.X.
Build scanner output when making a distribution.
Neil Conway [Tue, 9 Mar 2004 19:30:21 +0000 (19:30 +0000)]
Add documentation for the recent 'ALSO' patch for CREATE RULE. Along
the way, fix a typo and make a few SGML cleanups.
Rebuild HISTORY file to match our official style sheets.
Neil Conway [Tue, 9 Mar 2004 16:57:47 +0000 (16:57 +0000)]
Refer to GUC variables using <xref> tags rather than <varname> tags,
where appropriate. Add "id" and "xreflabel" tags to the descriptions
of the GUC variables to facilitate this. Also make a few minor docs
cleanups.
Corrects a typo, introduces missing variables, and rearranges the
initialization of stats process under EXEC_BACKEND.
[A cleaner, rationalized approach to stat/backend/SSDataBase child
processes under EXEC_BACKEND is on my TODO list. However this patch
takes care of immediate concerns (ie. stats test now passes under
win32)]
Claudio Natoli
Determines the PKGLIBDIR equivalent under win32. Requires pgsql lib and
bin directories to be packaged under the same root directory (eg. <some
path>/pgsql/bin and <some path>/pgsql/lib) for the win32 port, which
does not appear to be an onerous restriction.
Claudio Natoli
Add ALSO keyword to CREATE RULE.
Fabien COELHO
Make a separate win32 debug DLL along with the non-debug version:
Currently, src/interfaces/libpq/win32.mak builds a statically-linked
library "libpq.lib", a debug dll "libpq.dll", import library for the
debug dll "libpqdll.lib", a release dll "libpq.dll", import library for
the release dll "libpqdll.lib". To avoid naming clashes, I would make
the debug dll and import libraries "libpqd.dll" and "libpqddll.lib".
Basically, the debug build uses the cl flags: "/MDd /D _DEBUG", and the
release build uses the cl flags "/MD /D NDEBUG". Usually the debug
build has a "D" suffix on the file name, so for example:
libpqd.dll libpq, debug build
libpqd.lib libpq, debug build, import library
libpq.dll libpq, release build
libpq.lib libpq, release build, import library
David Turner
The win32 port backend will require the functionality provided by
canonicalize_path. Patch moves it from initdb.c to port/path.c.
Claudio Natoli
Done:
> * -Allow log lines to include session-level information, like database and user
Add:
#log_line_prefix = '' # e.g. '<%u%%%d> '
# %u=user name %d=database name
# %r=remote host and port
# %p=PID %t=timestamp %i=command tag
# %c=session id %l=session line number
# %s=session start timestamp
# %x=stop here in non-session processes
# %%='%'
Andrew Dunstan
I wanted to submit some changes to the bundled postgres startup
script for Mac OS X. I added calls to utilize the bundled apache
rotatelogs script in the DB startup for log rotation. Also modified
startup parameters file to allow using the "SystemStarter" utility to
start/stop/restart postgres with a rotating log file.
The script credits David Wheeler, 2002. I wrote him a message about
the changes an he suggested I post them here. I explain some of the
changes below.
Not sure how to submit the changes. I have 3 files, "PostgreSQL"
script, "StartupParameters.plist" file, "pg_startupscript.diff" file.
The diff file was run against the original "PostgreSQL" script file.
I'll try attaching them to this message. If they get filtered I can
resend if needed.
Thanks.
Ray A.
------------------------------------
1) Changed the "Provides" parameter in StartupParameters.plist to
"PostgreSQL" from "postgres database" simply for ease of typing. It
seems that the SystemStarter utility uses the "Provides" value if you
want to control the script. This way I did not have to enclose it in
quotes on commandline. The modified StartupParameters.plist is now an
XML document also.
2) For the startup script I added 2 user modifiable variables:
# do you want to rotate the log files, 1=true 0=false
ROTATELOGS=1
# logfile rotate in seconds
ROTATESEC="604800"
I also added a non modifiable variable:
# The apache log rotation utility
LOGUTIL="/usr/sbin/rotatelogs"
I modified the StartService and RestartService functions to execute
the new commands if the user wants log rotation.
Ray Aspeitia
Have SGML make clean remove text files output as well
Add comment about why ON COMMENT in non-current database throws just an
warning.
Update German FAQ.
Ian Barwick
Tom Lane [Mon, 8 Mar 2004 17:20:17 +0000 (17:20 +0000)]
Test for whether a previous IN join restricts the current join was too
strict, per discussion with Dennis Haney.
Also, rearrange the preceding tests to avoid redundancy.
Tom Lane [Sun, 7 Mar 2004 22:07:56 +0000 (22:07 +0000)]
Some editorial work on 7.4.2 release notes.
Neil Conway [Sun, 7 Mar 2004 20:41:27 +0000 (20:41 +0000)]
contrib/xml2 updates from John Gray:
I have changed the name of the new parse function to xml_valid and fixed
a reference to SortMem which meant that the code as supplied would work
against 7.3 and 7.4 but wouldn't work in CVS.
Added multidimensional arrays as todo for ecpg.
Tom Lane [Sun, 7 Mar 2004 05:43:53 +0000 (05:43 +0000)]
When testing usability of a partial index, recognize that an index
predicate of the form 'foo IS NOT NULL' is implied by a WHERE clause
that uses 'foo' in any strict operator or function. Per suggestion
and preliminary implementation by John Siracusa; some further hacking
by moi.
Neil Conway [Sun, 7 Mar 2004 04:31:01 +0000 (04:31 +0000)]
Improve discussion of using OIDs for identifying rows, fix an instance of
incorrect SGML markup.
Joe Conway [Sun, 7 Mar 2004 02:27:00 +0000 (02:27 +0000)]
Added new versions of dblink, dblink_exec, dblink_open, dblink_close,
and, dblink_fetch -- allows ERROR on remote side of connection to
throw NOTICE locally instead of ERROR. Also removed documentation for
previously deprecated, now removed, functions.
Neil Conway [Sun, 7 Mar 2004 01:02:55 +0000 (01:02 +0000)]
Explicitely mention that some GUC variables cannot be changed at
runtime.
Neil Conway [Sun, 7 Mar 2004 01:01:44 +0000 (01:01 +0000)]
Editorialization of some text discussing 'IS NULL' vs. '= NULL'.
Use lynx -stdin and regenerate HISTORY
Tom Lane [Fri, 5 Mar 2004 23:16:17 +0000 (23:16 +0000)]
Improve documentation of virtual_host parameter: old text failed to
indicate that you could specify multiple listen addresses.
Have makefile reference /xml2.
First update of release notes for 7.4.2. Still needs work.
Oops, '-' doesn't work for my lynx either.
Change back to /dev/stdin, even though it isn't portable. Let's wait for
someone to complain they don't have /dev/stdin.
Use '-' for stdin on lynx, my lynx version doesn't support -stdin.
Update Polish FAQ, from Marcin Mazurek.
Add xml2 as skipped /contrib Makefile entry.
Add mention xml2 is a newer version.
Add missing xml files.
Move new version of contrib/ xml into xml2, keep old version in /xml.
Thanks to the generous support of Torchbox (torchbox.com), I
have been able to significantly improve the contrib/xml XPath
integration code.
New features:
* XPath set-returning function allows multiple results from an several
XPath queries to be used as a virtual table.
* Using libxslt, XSLT transformations (with and without parameters) are
supported. (Caution: This support allows generic URL fetching from
within the backend as well).
I've removed the old code so that it is all libxml based. Rather than
attach as a patch, I've put the tar.gz (10k!) at
http://www.azuli.co.uk/pgxml-1.0.tar.gz
(all files in archive are xml/....).
I think this is worth replacing the contrib version with, even though
the function names have changed (though the same functionality is
there), because it includes a SRF and some SPI usage, in addition to
linking to an external library. And it isn't a big module! Obviously, I
understand that people might prefer to move it elsewhere, or might have
reservations about replacing an existing contrib module with an
incompatible one. I'm open to suggestions.
John Gray
Per a brief conversation with Tom, I've created a patch for adding
support for 'week' within the date_trunc function.
Within the patch I added a couple of test cases and associated target
output, and changed the documentation to add 'week' appropriately.
Robert Creager
Tom Lane [Fri, 5 Mar 2004 01:53:59 +0000 (01:53 +0000)]
libpq's query to get the OIDs of large-object support functions was not
schema-safe. Make it so, and improve the internal support for knowledge
of server version.
Win32:
* Mostly, casting etc to remove compilation warnings in win32 only code.
* main.c: set _IONBF to stdout/stderr under win32 (under win32, _IOLBF
defaults to full buffering)
* pg_resetxlog/Makefile: ensures dirmod.o gets cleaned (got bitten by
this when, after "make clean"ing, switching compilation between Ming +
Cygwin)
Claudio Natoli
Fix for underscore in ID sgml markup.
Add new SPI functions for use by PL/Java:
+extern Oid SPI_getargtypeid(void *plan, int argIndex);
+extern int SPI_getargcount(void *plan);
+extern bool SPI_is_cursor_plan(void *plan);
Thomas Hallgren
Fix log_executor_stats for non-multi queries. Backpatch to 7.4.X.
Neil Conway [Thu, 4 Mar 2004 21:47:18 +0000 (21:47 +0000)]
Emit a warning when an empty string is input to the oid, float4, and
float8 types. This begins the deprecation of this feature: in 7.6,
this input will be rejected.
Also added a new error code for warnings about deprecated features,
and updated the regression tests.
The trim function doc did not say that the second argument could be
be omitted. This patch fixes that. It also fixes a bug where the
type text was not wrapped as <type>text</type>.
Better document INSTEAD behavior for rules.
- Fixed segfault due to missing check for variable declaration.
- Added check for multidimensional array usage.
Neil Conway [Wed, 3 Mar 2004 22:22:24 +0000 (22:22 +0000)]
Add a few more cross-references where appropriate, add more text about
the FROM clause and an example to the UPDATE reference page, and make
a few other SGML tweaks.
Tom Lane [Wed, 3 Mar 2004 21:28:55 +0000 (21:28 +0000)]
Modify pg_dump so that the preferred dump order is by name within
object types, rather than by OID. This should help ensure consistent
dump output from databases that are logically the same but have different
histories, per recent discussion about 'diffing' databases. The patch
is bulky because of renaming of fields, but not very complicated.
Also, do some tweaking to cause BLOB restoration to be done in a better
order, and clean up pg_restore's textual output to exactly match pg_dump.
Fix wording of new bison warning, per Peter.
Remove Jan:
< o Add PL/PHP (Joe, Jan)
> o Add PL/PHP (Joe)
Seems the usage message for oid2name calls it pg_oid2name. Fixed.
Add:
> o Add way to remove cluster specification on a table
Adds the -W flag to the pwd call under Win32. This allows directories,
which are munged by sed, such as:
/e/cygwin/opt/diff9c/pgsql/src/test/regress/data/agg.data to be
correctly passed as:
e:/cygwin/opt/diff9c/pgsql/src/test/regress/data/agg.data
FWIW, "fixes" a large (> 20) tests under Win32.
Claudio Natoli
Tom Lane [Tue, 2 Mar 2004 22:17:34 +0000 (22:17 +0000)]
Remove useless rebuilding of subPlan list during ExecInitNode. Wouldn't
have been there to start with, except for overly enthusiastic copy-and-
paste ...
Tom Lane [Tue, 2 Mar 2004 22:05:24 +0000 (22:05 +0000)]
Update obsolete comment.
Tom Lane [Tue, 2 Mar 2004 21:14:44 +0000 (21:14 +0000)]
Always schema-qualify the name of a function referenced in CREATE CAST.
The former coding failed if the cast function was not in the pg_catalog
schema. How'd this escape detection?
Update bison warning to be clearer about its purpose.
Tom Lane [Tue, 2 Mar 2004 18:56:15 +0000 (18:56 +0000)]
Junkfilter logic to force a projection step during SELECT INTO was too
simplistic; it recognized SELECT * FROM but not SELECT * FROM LIMIT.
Per bug report from Jeff Bohmer.
Fix sizeof(Oid) in PGSTAT_NUM_TABPURGE. (Actually done in previous commit.)
Add missing checks for Borland C compiler.
L J Bayuk
Tom Lane [Tue, 2 Mar 2004 16:42:20 +0000 (16:42 +0000)]
Teach is_distinct_query to recognize that GROUP BY forces a subquery's
output to be distinct, if all the GROUP BY columns appear in the output.
Per suggestion from Dennis Haney.
Update Turkish FAQ, Devrim GUNDUZ
Add missing sprompt.obj psql usage for Borland compiler, per private
report from krizsan.
Backpatch to 7.4.X.
This is the main PostgreSQL git repository.
RSS
Atom