Bruce Momjian
d747140279
8.4 pgindent run, with new combined Linux/FreeBSD/MinGW typedef list
...
provided by Andrew.
2009-06-11 14:49:15 +00:00
Tom Lane
c029a6a49e
Fix contrib/pgstattuple and contrib/pageinspect to prevent attempts to read
...
temporary tables of other sessions; that is unsafe because of the way our
buffer management works. Per report from Stuart Bishop.
This is redundant with the bufmgr.c checks in HEAD, but not at all redundant
in the back branches.
2009-03-31 22:54:31 +00:00
Andrew Dunstan
53972b460c
Add $PostgreSQL$ markers to a lot of files that were missing them.
...
This particular batch was just for *.c and *.h file.
The changes were made with the following 2 commands:
find . \( \( -name 'libstemmer' -o -name 'expected' -o -name 'ppport.h' \) -prune \) -o \( -name '*.[ch]' \) \( -exec grep -q '\$PostgreSQL' {} \; -o -print \) | while read file ; do head -n 1 < $file | grep -q '^/\*' && echo $file; done | xargs -l sed -i -e '1s/^\// /' -e '1i/*\n * $PostgreSQL:$ \n *'
find . \( \( -name 'libstemmer' -o -name 'expected' -o -name 'ppport.h' \) -prune \) -o \( -name '*.[ch]' \) \( -exec grep -q '\$PostgreSQL' {} \; -o -print \) | xargs -l sed -i -e '1i/*\n * $PostgreSQL:$ \n */'
2008-05-17 01:28:26 +00:00
Alvaro Herrera
f8c4d7db60
Restructure some header files a bit, in particular heapam.h, by removing some
...
unnecessary #include lines in it. Also, move some tuple routine prototypes and
macros to htup.h, which allows removal of heapam.h inclusion from some .c
files.
For this to work, a new header file access/sysattr.h needed to be created,
initially containing attribute numbers of system columns, for pg_dump usage.
While at it, make contrib ltree, intarray and hstore header files more
consistent with our header style.
2008-05-12 00:00:54 +00:00
Tom Lane
d287818eb5
Adjust pgstatindex() to give correct answers for indexes larger than
...
2^31 blocks. Also fix pg_relpages() for the same case.
Tatsuhito Kasahara
2008-03-21 03:23:30 +00:00
Bruce Momjian
fdf5a5efb7
pgindent run for 8.3.
2007-11-15 21:14:46 +00:00
Tom Lane
38c75ecf83
Restrict pgstattuple functions to superusers. (This might be too strict,
...
but no permissions check at all is certainly no good.) Clean up usage
of some deprecated APIs.
2007-08-26 23:59:50 +00:00
Tom Lane
93624bcda0
Fix CHECK_RELATION_BLOCK_RANGE macro, which was not merely producing
...
a warning but was outright wrong.
2007-07-15 23:46:20 +00:00
Tom Lane
cfd6c89b04
Silence a rather odd compiler warning. In passing, make this file's
...
error messages look at least a little bit like the message style
guidelines say.
2007-07-15 23:09:26 +00:00
Bruce Momjian
64058429c5
Add database page inspection /contrib module.
...
Simon and Heikki
2007-05-17 19:11:25 +00:00
Alvaro Herrera
c9d3b8f5d2
Fix uninitialized value in pgstatindex leading to invalid values being
...
reported in some cases. Report and patch from Tatsuhito Kasahara.
Also fix a couple of other bugs I noticed in skimming the surrounding code.
2007-03-16 15:06:43 +00:00
Tom Lane
c9a6490991
Clean up some leftover problems in pgstattuple: remove unwanted and
...
unportable elog(NOTICE) report, fix install/uninstall sequence.
Itagaki Takahiro
2006-09-04 02:03:04 +00:00
Bruce Momjian
74924d29fa
Add functions to /contrib/pgstattuple that show index statistics and
...
index page contents.
Satoshi Nagayasu
2006-09-02 17:05:29 +00:00