postgresql/src/interfaces/ecpg
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
..
include Fixes to make ecpg work on Cygwin, from Jason Tishler <Jason.Tishler@dothill.com>. 2001-05-03 16:07:52 +00:00
lib Hopefully fixed the long long problem. 2001-04-05 08:21:14 +00:00
preproc Rewrite of planner statistics-gathering code. ANALYZE is now available as 2001-05-07 00:43:27 +00:00
test Fixes to make ecpg work on Cygwin, from Jason Tishler <Jason.Tishler@dothill.com>. 2001-05-03 16:07:52 +00:00
ChangeLog Hopefully fixed the long long problem. 2001-04-05 08:21:14 +00:00
Makefile Undo incorrectly committed Makefile. 2000-11-07 08:52:22 +00:00
README.dynSQL *** empty log message *** 2000-02-16 16:18:29 +00:00
TODO Fixed some bugs in C language parsing. 2000-10-17 15:38:26 +00:00

descriptor statements have the following shortcomings

- up to now the only reasonable statement is
	FETCH ... INTO SQL DESCRIPTOR <name>
  no input variables allowed!
  
  Reason: to fully support dynamic SQL the frontend/backend communication
  	should change to recognize input parameters.
  	Since this is not likely to happen in the near future and you
  	can cover the same functionality with the existing infrastructure
  	I'll leave the work to someone else.

- string buffer overflow does not always generate warnings 
	(beware: terminating 0 may be missing because strncpy is used)
	:var=data sets sqlwarn accordingly (but not indicator)

- char variables pointing to NULL are not allocated on demand
	
- string truncation does not show up in indicator