Tom Lane
cd902b331d
Change the rules for inherited CHECK constraints to be essentially the same
...
as those for inherited columns; that is, it's no longer allowed for a child
table to not have a check constraint matching one that exists on a parent.
This satisfies the principle of least surprise (rows selected from the parent
will always appear to meet its check constraints) and eliminates some
longstanding bogosity in pg_dump, which formerly had to guess about whether
check constraints were really inherited or not.
The implementation involves adding conislocal and coninhcount columns to
pg_constraint (paralleling attislocal and attinhcount in pg_attribute)
and refactoring various ALTER TABLE actions to be more like those for
columns.
Alex Hunsaker, Nikhil Sontakke, Tom Lane
2008-05-09 23:32:05 +00:00
Bruce Momjian
f8df836ae3
Adjust power() error messages to be more descriptive.
2008-05-09 21:31:23 +00:00
Andrew Dunstan
3159040627
Improve logic for finding object files on OBJS lines in contrib Makefiles. If this unbreaks buildfarm mastodon, apply everywhere.
2008-05-09 16:01:05 +00:00
Tom Lane
6b1b4641b8
Give a warning if -s switch is used with a non-custom pgbench test.
...
Also, clean up the code that assigned the scale into :scale variables.
Greg Smith and Tom Lane
2008-05-09 15:53:07 +00:00
Peter Eisentraut
d35c56ed9f
Add "%option noinput" to the scanners to avoid compiler warnings. GCC 4.3
...
began to realize that the input() function isn't used and printed warnings.
2008-05-09 15:36:31 +00:00
Bruce Momjian
6e3e60095d
Update C comments to mention SQL:2003 handling of power return values.
2008-05-09 15:36:06 +00:00
Heikki Linnakangas
c5f42ce8d5
Fix Assert introduced in previous patch.
2008-05-09 15:27:17 +00:00
Heikki Linnakangas
f0eb3e5e58
Fix incorrect archive truncation point calculation in the %r recovery_command
...
parameter. This fixes bug 4137 reported by Wojciech Strzalka, where a WAL
file is deleted too early when starting the recovery of a warm standby server.
Also add a sanity check in pg_standby so that it will refuse to delete anything
earlier than the file being restored, and improve the debug message in case
nothing is deleted.
Simon Riggs. Backpatch to 8.3, which is where %r was introduced.
2008-05-09 14:27:47 +00:00
Tom Lane
706fcbd820
Fix bogus expected output that should have made it quite clear that
...
something was wrong with that tab patch.
2008-05-09 05:25:54 +00:00
Tom Lane
e1435983b8
Fix memory stomp that's turning the whole buildfarm pink: you can't hack up
...
pg_wcsformat without changing pg_wcssize to match. Add some comments to
try to make that clearer, and make a couple other minor editorializations.
2008-05-09 05:25:04 +00:00
Bruce Momjian
c56b444496
Add to TODO:
...
>
> * Improve the /contrib installation experience
>
> http://archives.postgresql.org/pgsql-hackers/2008-04/msg00132.php
2008-05-09 03:58:41 +00:00
Bruce Momjian
4a586bd405
Add regression test for various power expressions with a zero base, and
...
adjust source code to be more modular.
2008-05-08 22:17:54 +00:00
Bruce Momjian
6b4e9d1654
Have numeric 0 ^ 4.3 return 1, rather than an error, and have 0 ^ 0.0
...
return 1, rather than error.
This was already the float8 behavior.
2008-05-08 19:25:38 +00:00
Bruce Momjian
eabd1b2ee8
Have psql output tab as the proper number of spaces, rather than \x09.
2008-05-08 19:11:36 +00:00
Bruce Momjian
5adf98ae24
Add psql '\pset format wrapped' mode to wrap output to screen width, or
...
file/pipe output too if \pset columns' is set.
Bryce Nesbitt
2008-05-08 17:04:26 +00:00
Tom Lane
eb915caf92
Fix contrib/xml2 makefile to not override CFLAGS, and in passing make it
...
auto-configure properly for libxslt present or not.
2008-05-08 16:49:37 +00:00
Tom Lane
abb78b1b5f
Fix rules regression test for recent pg_stat_activity change.
2008-05-08 16:04:59 +00:00
Magnus Hagander
a6d6a9c9a8
Make the new pg_stat_get_activity use OUT parameters, so you don't have to
...
specify the column names and types. Also simplifies the view.
Per comments from Tom.
2008-05-08 08:58:59 +00:00
Bruce Momjian
9c9732e3c7
Update TODO wording:
...
< * Improve detection of shared memory segments being used by other
< FreeBSD jails
> * Improve detection of shared memory segments being used by others
> by checking the SysV shared memory field 'nattch'
> http://archives.postgresql.org/pgsql-hackers/2008-01/msg00673.php
2008-05-08 02:24:26 +00:00
Bruce Momjian
b4362eeaa7
Add to TODO:
...
>
> o Add CREATE SCHEMA ... LIKE that copies a schema
>
2008-05-08 01:49:43 +00:00
Bruce Momjian
5b9c14cdf9
Add to TODO:
...
> * Add database and transaction-level triggers
>
> http://archives.postgresql.org/pgsql-hackers/2008-03/msg00451.php
2008-05-08 01:45:16 +00:00
Bruce Momjian
5bf049b56c
Remove OID/foreign key mention in psql variable interpolation docs.
2008-05-08 00:27:57 +00:00
Alvaro Herrera
09005f2fec
Add Simon Riggs' email address.
2008-05-07 18:48:40 +00:00
Bruce Momjian
00756a5691
Move Client Authentication right after Server Configuration in docs.
...
Scott Marlowe
2008-05-07 16:36:43 +00:00
Magnus Hagander
0423de4d30
Make the pg_stat_activity view call a SRF (pg_stat_get_activity())
...
instead of calling a bunch of individual functions.
This function can also be called directly, taking a PID as an argument, to
return only the data for a single PID.
2008-05-07 14:41:56 +00:00
Bruce Momjian
8008988be3
Fix TODO typo.
2008-05-07 04:46:01 +00:00
Bruce Momjian
44ba6f3476
Add URL for
...
< * Consider increasing the number of default statistics target, and
< reduce statistics target overhead
2008-05-07 04:45:39 +00:00
Bruce Momjian
bd8131ee8f
Update TODO wording:
...
< o Allow dictionary to filter out only stop words
> o Allow dictionaries to change the token that is passed on to
> later dictionaries
2008-05-07 04:34:51 +00:00
Bruce Momjian
40941c5129
Add item, make text search section:
...
o Consider changing error to warning for strings larger than one
megabyte
http://archives.postgresql.org/pgsql-bugs/2008-02/msg00190.php
http://archives.postgresql.org/pgsql-patches/2008-03/msg00062.php
2008-05-07 04:12:25 +00:00
Bruce Momjian
0f5651a90f
Have boolean pset values checked against typical boolean values, rather
...
than only 'off'.
2008-05-07 02:33:52 +00:00
Tom Lane
053948aee7
The CONSTROID syscache should show conrelid as a relation OID column.
...
Not clear that there's any observable bug at present from this omission,
but it seems like something to fix going forward.
2008-05-07 01:46:04 +00:00
Tom Lane
4136e1d06a
Convert the list of syscache names from a series of #define's into an enum,
...
to avoid the pain of manually renumbering them anytime we insert another
name in alphabetical order. An excellent idea from Alex Hunsaker and
NikhilS' inherited-constraints patch --- whether or not the rest of that
gets in, this should. Dunno why we never thought of it before.
2008-05-07 01:04:49 +00:00
Bruce Momjian
4222d7f036
Point to our download URL, rather than listing interface in the README
...
file:
http://www.postgresql.org/download
2008-05-06 22:02:12 +00:00
Bruce Momjian
bdf66cb29e
Update libpqxx URL in README.
2008-05-06 21:57:46 +00:00
Bruce Momjian
2d592d2e86
Done:
...
> * -Add function to report the time of the most recent server reload
2008-05-06 16:14:29 +00:00
Bruce Momjian
93afd6f619
Done:
...
> o -Improve display of enums to show valid enum values
2008-05-06 00:47:53 +00:00
Magnus Hagander
e3109ba159
Add more dependencies from libpgport required by
...
standalone msvc build of libpq.
Hiroshi Saito
2008-05-05 19:31:40 +00:00
Andrew Dunstan
27a52fa2d9
Document extra information provided by psql's \dT+ (not \dt+ as per recent commit).
2008-05-05 01:38:08 +00:00
Andrew Dunstan
a87f15d506
Display ACLS using multiple lines for psql's \z. Brendan Jurd.
2008-05-05 01:21:03 +00:00
Andrew Dunstan
c0b1b01ef5
Show enum values in psql's \dt+. David Fetter.
2008-05-05 00:11:31 +00:00
Tom Lane
b6d15590f7
Add timestamp and timestamptz versions of generate_series().
...
Hitoshi Harada
2008-05-04 23:19:24 +00:00
Tom Lane
600da67fbe
Add pg_conf_load_time() function to report when the Postgres configuration
...
files were last loaded.
George Gensure
2008-05-04 21:13:36 +00:00
Tom Lane
45173ae24e
Use new cstring/text conversion functions in some additional places.
...
These changes assume that the varchar and xml data types are represented
the same as text. (I did not, however, accept the portions of the proposed
patch that wanted to assume bytea is the same as text --- tgl.)
Brendan Jurd
2008-05-04 16:42:41 +00:00
Andrew Dunstan
0ff74f03b1
add ; missing due to my carelessness
2008-05-04 08:32:21 +00:00
Andrew Dunstan
c2c9fbef94
Place statement timeout more appropriately, per gripe from Tom.
2008-05-04 03:46:08 +00:00
Andrew Dunstan
17a56c0b55
Disable statement timeouts while making or restoring dumps.
...
Joshua Drake.
2008-05-03 23:32:32 +00:00
Tom Lane
c88850f4a0
The 8.2 patch that added support for an alias on the target table of
...
UPDATE/DELETE forgot to teach ruleutils.c to display the alias.
Per bug #4141 from Mathias Seiler.
2008-05-03 23:19:20 +00:00
Tom Lane
bdc7dd6799
Fix plpython to not get totally confused by OUT arguments. (It still doesn't
...
support multiple OUT arguments, though.)
Hannu Krosing
2008-05-03 02:47:48 +00:00
Andrew Dunstan
d61eecb5a1
Provide for MSVC config equivalents of recently added configure options. Remove
...
any hardcoding of those options. Along the way, reorder the expression used to
calculate RELSEG_SIZE to make it slightly clearer. For now wal_segsize is only
allowed to have a value of 1 on Windows - we can relax that when we get full
large file support in the backend.
2008-05-03 00:24:06 +00:00
Tom Lane
47391591ba
Support RETURN QUERY EXECUTE in plpgsql.
...
Pavel Stehule
2008-05-03 00:11:36 +00:00