Commit Graph

1959 Commits

Author SHA1 Message Date
Tom Lane 7d4854f85c Correct obsolete example of FROM-less query. 2001-05-30 04:32:30 +00:00
Bruce Momjian aa665d901f In chapter:
7.7. Keys

you have

    However, my application requires that each collection will also have a
    unique name. Why? So that a human being who wants to modify a collection
    will be able to identify it. It's much harder to know, if you have two
    collections named "Life Science", the the one tagged 24433 is the one
you
    need, and the one tagged 29882 is not

    I think 'the the' shouldn't be repeated twice. Although taken from an
email it would be cool to fix.

Cheers,
Maxim Maletsky
2001-05-30 04:01:11 +00:00
Tom Lane a056f14be0 Cause plpgsql's PERFORM to behave according to its documentation,
which says that PERFORM will execute any SELECT query and discard the
result.  The former implementation would in fact raise an error if the
result contained more than one row or more than one column.

Also, change plpgsql's error-logging mechanism to emit the additional
messages about error location at NOTICE rather than DEBUG level.  This
allows them to be seen by the client without having to dig into the
postmaster log file (which may be nonexistent or inaccessible by the
client).
2001-05-28 19:33:24 +00:00
Peter Eisentraut 3fdfce6839 markup fix 2001-05-28 14:58:58 +00:00
Bruce Momjian 411d7e4278 Update TODO list. 2001-05-28 04:28:36 +00:00
Bruce Momjian 32762facf6 Sample output that appears below the table attributes for \d:
Indicies: palm_buy_date_idx
          palm_user_date_idx
Primary Key: palm_buyers_pkey
Unique Key: palm_buyers_username
Constraint: "$1" ((sex = 'M'::bpchar) OR (sex = 'F'::bpchar))

Note that check constraint name now shown as well.  (Makes it a lot easier
to test inheritance support in ADD/DROP constraint :) )

Attached is a docs change for psql.

Christopher Kings
2001-05-28 04:27:17 +00:00
Bruce Momjian a001f13506 Update TODO list. 2001-05-27 16:31:30 +00:00
Peter Eisentraut 96147a6d1c Make UPDATE and DELETE privileges distinct. Add REFERENCES and TRIGGER
privileges.  INSERT and COPY FROM now require INSERT (only).  Add
privileges regression test.
2001-05-27 09:59:30 +00:00
Bruce Momjian f6923ff3ac Oops, only wanted python change in the last commit. Backing out. 2001-05-25 15:45:34 +00:00
Bruce Momjian dffb673692 While changing Cygwin Python to build its core as a DLL (like Win32
Python) to support shared extension modules, I have learned that Guido
prefers the style of the attached patch to solve the above problem.
I feel that this solution is particularly appropriate in this case
because the following:

    PglargeType
    PgType
    PgQueryType

are already being handled in the way that I am proposing for PgSourceType.

Jason Tishler
2001-05-25 15:34:50 +00:00
Bruce Momjian f36fc7bb63 I haven't tried building postgres with the Watcom compiler for 7.1 because
it does not support 64bit integers. AFAIK that's the default data type for
OIDs, so I am not surprised that this does not work. Use gcc instead.
BTW., 7.1 does not compile as is with gcc either, I believed the
required patches made it into the 7.1.1 release but obviously I missed
the deadline.
Since the ports mailing list does not seem to be archived I have attached
a copy of the patch (for 7.1 and 7.1.1).

I've just performed a build of a Watcom compiled version and found a couple
of bugs in the watcom specific part of that patch. Please use the attached
version instead.

Tegge, Bernd
2001-05-24 15:53:34 +00:00
Bruce Momjian 23287c106d Update TODO list. 2001-05-24 14:36:31 +00:00
Peter Eisentraut 444c5bf1b2 SQL function bit_length 2001-05-24 09:29:29 +00:00
Bruce Momjian 371a04fccf Update TODO list. 2001-05-23 16:02:55 +00:00
Bruce Momjian 02f4ee1a81 Update TODO list. 2001-05-23 00:42:25 +00:00
Bruce Momjian 50bad5ed41 Update FAQ. 2001-05-22 21:50:34 +00:00
Bruce Momjian ef4893e605 Update TODO list. 2001-05-22 19:38:22 +00:00
Peter Eisentraut efcecd9eca Make bit and bit varying types reject too long input. (They already tried
to do that, but inconsistently.)  Make bit type reject too short input,
too, per SQL.  Since it no longer zero pads, 'zpbit*' has been renamed to
'bit*' in the source, hence initdb.
2001-05-22 16:37:17 +00:00
Peter Eisentraut c84c3d8fea more indices -> indexes 2001-05-22 16:00:00 +00:00
Bruce Momjian fdf067c108 ELSEIF PL/PgSQL doc patch.
Klaus Reger
2001-05-22 13:52:27 +00:00
Bruce Momjian e6ba9213a2 Update TODO list. 2001-05-22 13:20:46 +00:00
Bruce Momjian 73f357bcc3 Update TODO list. 2001-05-22 12:10:50 +00:00
Bruce Momjian 476cbabcb6 Update TODO list. 2001-05-22 01:35:25 +00:00
Bruce Momjian 66e9ee79c7 Print error on SELECT tab FROM tab:
You can't use relation names alone in the target list, try relation.*
2001-05-21 18:42:08 +00:00
Bruce Momjian 984bf07a65 Update TODO list. 2001-05-21 18:36:58 +00:00
Peter Eisentraut 5546ec289b Make char(n) and varchar(n) types raise an error if the inserted string is
too long.  While I was adjusting the regression tests I moved the array
things all into array.sql, to make things more manageable.
2001-05-21 16:54:46 +00:00
Bruce Momjian 5d53389cfe Update TODO list. 2001-05-20 01:11:48 +00:00
Peter Eisentraut cb8b40e6d5 Allow special '$libdir' macro to show up in object file path in CREATE
FUNCTION command.  Guard against trying to load a directory.  Update
documentation some.
2001-05-19 09:01:10 +00:00
Bruce Momjian 3da29a8b4b Update TODO list. 2001-05-18 16:28:12 +00:00
Bruce Momjian d220d3482d Update TODO list. 2001-05-18 15:18:55 +00:00
Bruce Momjian 1bb13716ec Update TODO list. 2001-05-18 14:39:54 +00:00
Bruce Momjian edf829aa1c Update TODO list. 2001-05-17 22:07:21 +00:00
Peter Eisentraut a6677f0f9e Change "indices" to "indexes", per OED. 2001-05-17 21:50:18 +00:00
Peter Eisentraut f000ffd28e Add -U and -W options to pg_dump and friends to support non-interactive
specification of username (like in psql).  pg_dumpall now works with
password authentication.
2001-05-17 21:12:49 +00:00
Peter Eisentraut 761a0bb69b Add dynamic_library_path parameter and automatic appending of shared
library extension.
2001-05-17 17:44:18 +00:00
Bruce Momjian e4f2bea7fb Add HISTORY items for 7.1.2. 2001-05-17 13:28:30 +00:00
Bruce Momjian 1ef5c99c85 Fix 'make clean' with jdbc and ant by using filesets. 2001-05-17 03:22:53 +00:00
Bruce Momjian b350b52139 Update TODO list. 2001-05-17 00:10:08 +00:00
Bruce Momjian 2cc332002f Update TODO list. 2001-05-17 00:08:38 +00:00
Bruce Momjian ae38a1f556 Update TODO list. 2001-05-16 20:18:25 +00:00
Bruce Momjian 3848a14ed7 redo record -> undo record, Tom Lane. 2001-05-15 13:57:37 +00:00
Bruce Momjian 83966889ed Update TODO list. 2001-05-14 20:30:38 +00:00
Bruce Momjian 1e7b79cebc Remove unused tables pg_variable, pg_inheritproc, pg_ipl tables. Initdb
forced.
2001-05-14 20:30:21 +00:00
Bruce Momjian 7d802e07a7 Fix 'set path' for csh. 2001-05-14 16:16:52 +00:00
Bruce Momjian 21e3848d20 Update TODO list. 2001-05-13 02:19:58 +00:00
Bruce Momjian 911a498176 Update TODO list. 2001-05-13 01:05:34 +00:00
Peter Eisentraut 01839df6dd Add index. Only some parts of the manual set have index entries so far... 2001-05-12 22:51:36 +00:00
Peter Eisentraut b3f66d1980 Add command '\pset footer' to psql to turn off default "(x rows)" footer. 2001-05-12 19:44:46 +00:00
Peter Eisentraut bbc3920fe9 PL/Python should build portably now, if you can get over the fact that
there's no shared libpython.  Test suite works as well. Also, add some
documentation.
2001-05-12 17:49:32 +00:00
Peter Eisentraut 7a76e29b0e no more Andy Piper tools 2001-05-11 22:27:12 +00:00
Tom Lane 0ad9abe72e Improve discussion of %TYPE and %ROWTYPE. 2001-05-11 06:10:44 +00:00
Bruce Momjian 54d9099596 Stamp CVS as 7.2. Update all interface version numbers. This is the
time to do it, not during beta because people are using this stuff in
production sometimes.
2001-05-11 01:46:33 +00:00
Bruce Momjian d4dfef1cdb Stamp for 7.1.2. Ready when you are... 2001-05-11 01:34:14 +00:00
Bruce Momjian f877cc3435 Update FAQ. 2001-05-11 01:33:01 +00:00
Bruce Momjian 507a3444df Update TODO list. 2001-05-10 23:35:50 +00:00
Bruce Momjian 8a4a8027eb Update TODO list. 2001-05-10 22:36:52 +00:00
Bruce Momjian a26ad8a643 Update TODO list. 2001-05-10 20:28:48 +00:00
Bruce Momjian d228278c6e Update TODO list. 2001-05-10 20:26:45 +00:00
Bruce Momjian a871e36944 Update TODO list. 2001-05-10 17:29:55 +00:00
Bruce Momjian 1c6db74d80 Update TODO list. 2001-05-10 17:20:10 +00:00
Bruce Momjian 3bcf19dc84 Another add. 2001-05-09 23:17:23 +00:00
Bruce Momjian fa8b0077ef Add new emails. 2001-05-09 23:15:55 +00:00
Tom Lane c23bc6fbb0 First cut at making indexscan cost estimates depend on correlation
between index order and table order.
2001-05-09 23:13:37 +00:00
Bruce Momjian e02033572d Update TODO list. 2001-05-09 23:11:54 +00:00
Peter Eisentraut 2c6373fafa Add --echo option to createlang and droplang.
from Oliver Elphick
2001-05-09 22:08:19 +00:00
Bruce Momjian a0458a91bf Update TODO list. 2001-05-09 20:40:30 +00:00
Bruce Momjian acd16eadf5 Change --with-pltcl-unknown to --enable-pltcl-unknown 2001-05-09 19:41:57 +00:00
Bruce Momjian f7659a9c18 This patch adds a new configure option --with-pltcl-unknown which
enables pltcl unknown support.


Also it adds substituting of tclsh with tclsh that was by configure in
pltcl_*mod scripts. For example, On freebsd, tclsh can be called
tclsh8.2 or
tclsh8.3 depending on installed version of Tcl.

After patching files
  src/pl/tcl/modules/pltcl_listmod
  src/pl/tcl/modules/pltcl_loadmod
  src/pl/tcl/modules/pltcl_delmod
must be renamed(copied,repocopied) to
  src/pl/tcl/modules/pltcl_listmod.in
  src/pl/tcl/modules/pltcl_loadmod.in
  src/pl/tcl/modules/pltcl_delmod.in

seva@sevasoft.kiev.ua
2001-05-09 19:19:00 +00:00
Bruce Momjian b0546a2554 Fix libpq++'s FieldSize to return int, not short. 2001-05-09 17:46:11 +00:00
Bruce Momjian a79b698adb Here's a version of my suggested diffs transplanted to 7.1 beta 5. I'm
still looking at the best way to integrate Tom Vijlbrief's fixes
(insofar as they're still needed); would 7.2 be a suitable time for
incompatible API changes?


Jeroen


Changes:

(*) Introduced bool, true, false (replacing some int, 1, 0)
(*) Made some member functions const
(*) Documented GetIsNull()
(*) Marked DisplayTuples() and PrintTuples() as obsolescent; fixed possible
    portability problem (assumed that NULL pointer equals all-zero bit pattern)
(*) PrintTuples(): renamed width parameter to fillAlign to conform with other
    usage; fixed memory leak and compile issue w.r.t. field separator (should
    also slightly improve performance)
(*) Fixed some minor compilation issues
(*) Moved "using namespace std;" out of headers, where they didn't belong; used
    new (temporary) preprocessor macro PGSTD to do this
(*) Made ToString() static, removed unneeded memset(), made buffer size adapt
    to sizeof(int)
(*) Made some constructors explicit
(*) Changed some const std::string & parameters to plain std::string
(*) Marked PgCursor::Cursor(std::string) as obsolescent (setter with same name
    as getter--bad style)
(*) Renamed some paramaters previously named "string"
(*) Introduced size_type typedef for number of tuples in result set
(*) PgTransaction now supports re-opening after closing, and aborts if not
    explicitly committed prior to destruction

J. T. Vermeulen
2001-05-09 17:29:10 +00:00
Bruce Momjian 1ef9338ab6 If it's true that the ALTER TABLE x ADD CONSTRAINT x CHECK (x) syntax is
supported in 7.1.1, here is a patch to that alter_table.sgml that documents
it.

Christopher Kings-Lynne
2001-05-09 13:27:15 +00:00
Tom Lane 6cda3ad8fe Cause planner to make use of average-column-width statistic that is now
collected by ANALYZE.  Also, add some modest amount of intelligence to
guesses that are used for varlena columns in the absence of any ANALYZE
statistics.  The 'width' reported by EXPLAIN is finally something less
than totally bogus for varlena columns ... and, in consequence, hashjoin
estimating should be a little better ...
2001-05-09 00:35:09 +00:00
Bruce Momjian b66a0cca57 Update runtime shared memory computations. 2001-05-08 21:09:47 +00:00
Peter Eisentraut 1c1c58c76c Add SET SESSION AUTHORIZATION command. 2001-05-08 21:06:43 +00:00
Bruce Momjian 530dc73cd1 Remove pgadmin.sgml file. 2001-05-08 19:28:01 +00:00
Bruce Momjian 3044bc4043 Add new emails to file. 2001-05-08 19:21:46 +00:00
Bruce Momjian a5b17eb280 Remove LISP manual reference. Added to web "interfaces" page. 2001-05-08 19:14:52 +00:00
Bruce Momjian aea4f6f993 Update TODO list. 2001-05-08 19:01:55 +00:00
Bruce Momjian 04e14fa350 drop_function.sgml:
===================
In Notes:
 Refer to CREATE FUNCTION for information on creating aggregate functions.
                                                      ^^^^^^^^^^^^^^^^^^^
I assume it must read C function instead.

In Compatibility SQL/PSM:
 SQL/PSM is a proposed standard.

 We had that before: remove proposed.


drop_index.sgml:
================
<REFNAME>: Removes existing indexes from a database

as far as I can see index should be singular. The command description is
written as if only one index can be removed at a time. Interestingly
enough, in v7.0.2 it was in fact singular. Am I mistaken here?

drop_operator.sgml:
===================
In Outputs the arguments are referred to as type and type2, but the synopsis
and Inputs section these are left_type and right_type, respectively. Also,
oper is used in Outputs versus id in Inputs/Synopsis. In the translation I
follow the replaceables used in the Inputs/Synopsis part.

Frank Wegmann
2001-05-08 17:51:30 +00:00
Bruce Momjian cd11d33a36 drop_function.sgml:
===================
In Notes:
 Refer to CREATE FUNCTION for information on creating aggregate functions.
                                                      ^^^^^^^^^^^^^^^^^^^
I assume it must read C function instead.

Frank Wegmann
2001-05-08 17:35:57 +00:00
Tom Lane 46c93bd532 Further cleanup of RAISE discussion; in particular, remove example
that doesn't actually work.
2001-05-08 02:53:24 +00:00
Bruce Momjian 24baa1d95f Fix raise mention that %% output as %. 2001-05-08 02:26:09 +00:00
Bruce Momjian f4832defa9 Update RAISE manual concerning % format symbols. 2001-05-08 00:30:41 +00:00
Bruce Momjian a9ac332a4e Update TODO list. 2001-05-08 00:19:19 +00:00
Bruce Momjian c1983858c0 Update TODO list. 2001-05-08 00:14:15 +00:00
Bruce Momjian e86c31c74f Update RAISE mention in manual to take string/variable not format/identifier. 2001-05-08 00:09:22 +00:00
Bruce Momjian 5fdae774a1 Add mention of functional indexes for case-insensitive comparisons. 2001-05-07 19:58:31 +00:00
Peter Eisentraut 232724af0d Add \cd command to psql. 2001-05-07 19:31:33 +00:00
Bruce Momjian ab420e2114 Update TODO list. 2001-05-07 18:40:59 +00:00
Bruce Momjian ef71c8fccf Update TODO list. 2001-05-07 17:05:17 +00:00
Bruce Momjian 84fd16516c Update FAQ to use new pgsql-cygwin@postgresql.org list. 2001-05-07 16:02:38 +00:00
Bruce Momjian f83f740a13 Solaris startup cleanup from Justin Clift 2001-05-07 15:55:27 +00:00
Tom Lane f905d65ee3 Rewrite of planner statistics-gathering code. ANALYZE is now available as
a separate statement (though it can still be invoked as part of VACUUM, too).
pg_statistic redesigned to be more flexible about what statistics are
stored.  ANALYZE now collects a list of several of the most common values,
not just one, plus a histogram (not just the min and max values).  Random
sampling is used to make the process reasonably fast even on very large
tables.  The number of values and histogram bins collected is now
user-settable via an ALTER TABLE command.

There is more still to do; the new stats are not being used everywhere
they could be in the planner.  But the remaining changes for this project
should be localized, and the behavior is already better than before.

A not-very-related change is that sorting now makes use of btree comparison
routines if it can find one, rather than invoking '<' twice.
2001-05-07 00:43:27 +00:00
Peter Eisentraut 7038554c4e Allow 'psql -f -' to read from standard input. 2001-05-06 17:38:32 +00:00
Peter Eisentraut 84e8e5b427 Make prompt customization work with changeable Unix socket location. 2001-05-06 17:21:11 +00:00
Bruce Momjian 1564bd11e3 UPdate for release tomorrow. 2001-05-05 02:57:40 +00:00
Tom Lane e669b8d751 COMMIT_DELAY and COMMIT_SIBLINGS were missing from the list of WAL
configuration parameters in chapter 3.
2001-05-04 23:11:37 +00:00
Bruce Momjian 8d2fe903b0 Update TODO list. 2001-05-04 22:08:53 +00:00
Bruce Momjian 9278262181 Update TODO list. 2001-05-04 20:48:14 +00:00
Bruce Momjian 602b742507 Add missing tag. 2001-05-04 02:54:33 +00:00