Commit Graph

731 Commits

Author SHA1 Message Date
Bruce Momjian b866d2e2d7 as attache of this mail is patch (to the main tree) with to_char's
family functions. Contain:

  conversion from a datetype to formatted text:

	to_char( datetime, 	text)
	to_char( timestamp,	text)
	to_char( int4,		text)
	to_char( int8,		text)
	to_char( float4,	text)
	to_char( float8,	text)
	to_char( numeric,	text)

  vice versa:

	to_date		( text, text)
	to_datetime	( text, text)
	to_timestamp	( text, text)
	to_number	( text, text)	   (convert to numeric)


  PostgreSQL to_char is very compatible with Oracle's to_char(), but not
total exactly (now). Small differentions are in number formating. It will
fix in next to_char() version.


! If will this patch aplly to the main tree, must be delete the current
  to_char version in contrib (directory "dateformat" and note in contrib's
  README), this patch not erase it (sorry Bruce).



The patch patching files:

	doc/src/sgml/func.sgml
                     ^^^^^^^^
   Hmm, I'm not sure if my English... :( Check it anyone (volunteer)?

   Thomas, it is right? SGML is not my primary lang  and compile
   the current PG docs tree is very happy job (hard variables setting in
   docs/sgml/Makefile --> HSTYLE= /home/users/t/thomas/....  :-)

   What add any definition to global configure.in and set Makefiles in docs
   tree via ./configure?

	src/backend/utils/adt/Makefile
	src/backend/utils/adt/formatting.c
	src/include/catalog/pg_proc.h
	src/include/utils/formatting.h
Karel Zak <zakkr@zf.jcu.cz>              http://home.zf.jcu.cz/~zakkr/
2000-01-25 23:53:56 +00:00
Tom Lane 90aaad06cf Remove obsolete references to 8K query limit. 2000-01-25 07:04:04 +00:00
Bruce Momjian ca5771dc27 Update TODO list. 2000-01-24 22:27:59 +00:00
Peter Eisentraut bdb41ad0e7 Made abstime/reltime use int4 instead of time_t (TODO item)
Made type equivalency apply to aggregates (TODO item)
Fixed parsing bug in psql
Reverted some stupid options changes I made to pg_dump
2000-01-24 19:34:19 +00:00
Tom Lane 0dbffa704a First cut at making useful selectivity estimates for range queries
(ie, WHERE x > lowbound AND x < highbound).  It's not very bright yet
but it does something useful.  Also, rename intltsel/intgtsel to
scalarltsel/scalargtsel to reflect usage better.  Extend convert_to_scalar
to do something a little bit useful with string data types.  Still need
to make it do something with date/time datatypes, but I'll wait for
Thomas's datetime unification dust to settle first.  Eventually the
routine ought not have any type-specific knowledge at all; it ought to
be calling a type-dependent routine found via a pg_type column; but
that's a task for another day.
2000-01-24 07:16:52 +00:00
Bruce Momjian da5aba105f Remove Ops parameter from STATRELID cache lookup, for Tom Lane and
optimizer.
2000-01-24 02:12:58 +00:00
Bruce Momjian 4d564c5b12 Update TODO list. 2000-01-23 17:30:18 +00:00
Bruce Momjian 1161077e97 Update TODO list. 2000-01-23 03:28:54 +00:00
Bruce Momjian 0daf852b32 Update TODO list. 2000-01-23 03:19:05 +00:00
Peter Eisentraut 49581f9848 updated install file
updated date/time types doc
fixed small psql bug
removed libpq code that lower-cased db names
make notice when long identifier is truncated
2000-01-23 01:27:39 +00:00
Tom Lane 71ed7eb494 Revise handling of index-type-specific indexscan cost estimation, per
pghackers discussion of 5-Jan-2000.  The amopselect and amopnpages
estimators are gone, and in their place is a per-AM amcostestimate
procedure (linked to from pg_am, not pg_amop).
2000-01-22 23:50:30 +00:00
Bruce Momjian 3f51bdafdc Update TODO list. 2000-01-22 04:29:46 +00:00
Bruce Momjian 5b7bc48391 Update TODO list. 2000-01-21 03:55:22 +00:00
Bruce Momjian 901aaf34bd Update TODO list. 2000-01-21 00:45:29 +00:00
Bruce Momjian e3415aa834 Rename 7.0.0 to 7.0 to be consistent with prior release numbering. 2000-01-20 22:21:30 +00:00
Peter Eisentraut 13f8875017 Added new pg_id to fix initdb problems
New INSTALL file
Fixed a copyright notice
2000-01-20 21:51:09 +00:00
Peter Eisentraut 65e0051843 another round of user interface cleanups
removed pg_id
fixed a few bugs in the scripts
2000-01-19 20:08:36 +00:00
Peter Eisentraut f565cf41ab another set of cleanups 2000-01-18 23:30:24 +00:00
Bruce Momjian 41d4548b0f Freebsd update for sgml, from Alfred Perlstein 2000-01-18 06:10:54 +00:00
Bruce Momjian 10d7287ab9 Libpq non-blocking mode, from Alfred Perlstein 2000-01-18 06:09:24 +00:00
Peter Eisentraut 28125ed5e0 Updated user interfaces on initdb, initlocation, pg_dump, ipcclean to a GNU-compliant'ish state.
Made ipcclean work on Linux.
2000-01-18 00:03:37 +00:00
Bruce Momjian 6759f4388f Update TODO list. 2000-01-17 02:43:13 +00:00
Peter Eisentraut 759fba4873 Included all yacc and lex files into the distribution. 2000-01-16 20:05:00 +00:00
Bruce Momjian 1b6b4d40ed Update TODO list. 2000-01-16 07:05:35 +00:00
Bruce Momjian fae5d81c68 Update TODO list. 2000-01-16 05:18:07 +00:00
Bruce Momjian 255e07e829 Update TODO list. 2000-01-16 02:35:30 +00:00
Bruce Momjian 3a2e08618c Update TODO list. 2000-01-16 02:32:13 +00:00
Bruce Momjian 0f4a586821 Update TODO list. 2000-01-15 19:32:06 +00:00
Peter Eisentraut 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
2000-01-15 18:30:35 +00:00
Peter Eisentraut 7c9390caa1 Fixed psql variables vs array syntax, as well as minor psql enhancements 2000-01-14 22:18:03 +00:00
Peter Eisentraut 4ceb2d0cb6 * User management commands no longer user pg_exec_query_dest -> more robust
* Let unprivileged users change their own passwords.

* The password is now an Sconst in the parser, which better reflects its text datatype and also
forces users to quote them.

* If your password is NULL you won't be written to the password file, meaning you can't connect
until you have a password set up (if you use password authentication).

* When you drop a user that owns a database you get an error. The database is not gone.
2000-01-14 22:11:38 +00:00
Tom Lane 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.
2000-01-14 05:33:15 +00:00
Bruce Momjian bb7e85fb85 Update TODO list. 2000-01-14 01:10:22 +00:00
Bruce Momjian e419b48217 Update TODO list. 2000-01-13 13:22:05 +00:00
Bruce Momjian 3af969d4a0 Update TODO list. 2000-01-13 03:39:45 +00:00
Bruce Momjian af53b624f0 Update TODO list. 2000-01-13 03:36:42 +00:00
Bruce Momjian 326a69deeb Update TODO list. 2000-01-13 03:06:29 +00:00
Bruce Momjian e589b9e821 Update TODO list. 2000-01-13 02:38:21 +00:00
Bruce Momjian 7c25123df4 Update TODO list. 2000-01-13 01:57:04 +00:00
Bruce Momjian c6035cd173 Update TODO list. 2000-01-13 01:48:46 +00:00
Peter Eisentraut f6689a328f Fixed a few "fixes" and bugs. Adjusted messages and options to GNU suggestions. 2000-01-12 19:36:36 +00:00
Bruce Momjian 142ce7939d Update TODO list. 2000-01-11 12:11:20 +00:00
Tom Lane ac295f43f5 Update struct Trigger definition. 2000-01-11 05:37:11 +00:00
Tom Lane ac401e06c5 Change oid8/int28 -> oidvector/int2vector. 2000-01-11 01:40:04 +00:00
Bruce Momjian 752314eb26 Update TODO list. 2000-01-10 13:20:57 +00:00
Bruce Momjian 8cc9d8454b Update TODO list. 2000-01-10 04:23:58 +00:00
Tom Lane b86ca72f39 Update platform-specific-expected-file support so that platforms can be
specified by regular-expression patterns.  Add some more files.
2000-01-09 20:54:36 +00:00
Bruce Momjian aa48a22a82 The psql online help for ALTER TABLE (\h alter table) is corrupt. I
traced this back to what I believe is an error in the sgml file used to
generate this comment, found in pgsql/doc/src/sgml/ref/alter_table.sgml.


Stephen Birch
2000-01-09 17:35:27 +00:00
Bruce Momjian b16bd18546 Clearify DECLARE syntax by saying cursorname, not just cursor. 1999-12-30 22:58:10 +00:00
Bruce Momjian 649ffe1616 Improve subquery error message, now says "More than one tuple returned
by subselect used as expression."
1999-12-29 22:57:17 +00:00