<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/postgresql.git/contrib/dbsize, branch master</title>
<subtitle>git.postgresql.org: git/postgresql.git
</subtitle>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/postgresql.git/'/>
<entry>
<title>Move dbsize functions into the backend.  New functions:</title>
<updated>2005-07-29T14:47:04+00:00</updated>
<author>
<name>Bruce Momjian</name>
<email>bruce@momjian.us</email>
</author>
<published>2005-07-29T14:47:04+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/postgresql.git/commit/?id=358a897fa1d7ff49c350f2cb7a0372c0f67dfb88'/>
<id>358a897fa1d7ff49c350f2cb7a0372c0f67dfb88</id>
<content type='text'>
	pg_tablespace_size
	pg_database_size
	pg_relation_size
	pg_complete_relation_size
	pg_size_pretty

Remove /contrib/dbsize.

Dave Page
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
	pg_tablespace_size
	pg_database_size
	pg_relation_size
	pg_complete_relation_size
	pg_size_pretty

Remove /contrib/dbsize.

Dave Page
</pre>
</div>
</content>
</entry>
<entry>
<title>Arrange for the postmaster (and standalone backends, initdb, etc) to</title>
<updated>2005-07-04T04:51:52+00:00</updated>
<author>
<name>Tom Lane</name>
<email>tgl@sss.pgh.pa.us</email>
</author>
<published>2005-07-04T04:51:52+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/postgresql.git/commit/?id=eb5949d190e80360386113fde0f05854f0c9824d'/>
<id>eb5949d190e80360386113fde0f05854f0c9824d</id>
<content type='text'>
chdir into PGDATA and subsequently use relative paths instead of absolute
paths to access all files under PGDATA.  This seems to give a small
performance improvement, and it should make the system more robust
against naive DBAs doing things like moving a database directory that
has a live postmaster in it.  Per recent discussion.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
chdir into PGDATA and subsequently use relative paths instead of absolute
paths to access all files under PGDATA.  This seems to give a small
performance improvement, and it should make the system more robust
against naive DBAs doing things like moving a database directory that
has a live postmaster in it.  Per recent discussion.
</pre>
</div>
</content>
</entry>
<entry>
<title>Simplify uses of readdir() by creating a function ReadDir() that</title>
<updated>2005-06-19T21:34:03+00:00</updated>
<author>
<name>Tom Lane</name>
<email>tgl@sss.pgh.pa.us</email>
</author>
<published>2005-06-19T21:34:03+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/postgresql.git/commit/?id=3f749924f82efd5b2f4b424f6c69a89a2959e4b3'/>
<id>3f749924f82efd5b2f4b424f6c69a89a2959e4b3</id>
<content type='text'>
includes error checking and an appropriate ereport(ERROR) message.
This gets rid of rather tedious and error-prone manipulation of errno,
as well as a Windows-specific bug workaround, at more than a dozen
call sites.  After an idea in a recent patch by Heikki Linnakangas.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
includes error checking and an appropriate ereport(ERROR) message.
This gets rid of rather tedious and error-prone manipulation of errno,
as well as a Windows-specific bug workaround, at more than a dozen
call sites.  After an idea in a recent patch by Heikki Linnakangas.
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove second argument from textToQualifiedNameList(), as it is no longer</title>
<updated>2005-05-27T00:57:49+00:00</updated>
<author>
<name>Neil Conway</name>
<email>neilc@samurai.com</email>
</author>
<published>2005-05-27T00:57:49+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/postgresql.git/commit/?id=a4374f90703baf8c74b2bcc074ead2e7253d5b9a'/>
<id>a4374f90703baf8c74b2bcc074ead2e7253d5b9a</id>
<content type='text'>
used. From Jaime Casanova.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
used. From Jaime Casanova.
</pre>
</div>
</content>
</entry>
<entry>
<title>Add routines to dbsize to return the index size and total relation size.</title>
<updated>2005-02-26T23:31:15+00:00</updated>
<author>
<name>Bruce Momjian</name>
<email>bruce@momjian.us</email>
</author>
<published>2005-02-26T23:31:15+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/postgresql.git/commit/?id=4f51368bad84cc295a08b04a6c3fe9572d1329d4'/>
<id>4f51368bad84cc295a08b04a6c3fe9572d1329d4</id>
<content type='text'>
Improve documentation.

Ed L.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Improve documentation.

Ed L.
</pre>
</div>
</content>
</entry>
<entry>
<title>Update copyrights that were missed.</title>
<updated>2005-01-01T05:43:09+00:00</updated>
<author>
<name>Bruce Momjian</name>
<email>bruce@momjian.us</email>
</author>
<published>2005-01-01T05:43:09+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/postgresql.git/commit/?id=2daed8c5b3b1a613b83c73be25a21cc378d69bb1'/>
<id>2daed8c5b3b1a613b83c73be25a21cc378d69bb1</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Code review for recent dbsize changes.  Fix some thinkos, enforce coding</title>
<updated>2004-09-28T19:35:43+00:00</updated>
<author>
<name>Tom Lane</name>
<email>tgl@sss.pgh.pa.us</email>
</author>
<published>2004-09-28T19:35:43+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/postgresql.git/commit/?id=d9b68c8061ac925f341537ab03239f239bb51f29'/>
<id>d9b68c8061ac925f341537ab03239f239bb51f29</id>
<content type='text'>
style and message style standards, improve documentation.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
style and message style standards, improve documentation.
</pre>
</div>
</content>
</entry>
<entry>
<title>Improve README with mention of new functions.</title>
<updated>2004-09-08T19:35:33+00:00</updated>
<author>
<name>Bruce Momjian</name>
<email>bruce@momjian.us</email>
</author>
<published>2004-09-08T19:35:33+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/postgresql.git/commit/?id=cef30c650beec45c022338f816d9c3ee2ce496e3'/>
<id>cef30c650beec45c022338f816d9c3ee2ce496e3</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove line specifying Andreas as author.</title>
<updated>2004-09-02T04:04:04+00:00</updated>
<author>
<name>Bruce Momjian</name>
<email>bruce@momjian.us</email>
</author>
<published>2004-09-02T04:04:04+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/postgresql.git/commit/?id=baace400c75392b2bfca71e53c212d7bdac36702'/>
<id>baace400c75392b2bfca71e53c212d7bdac36702</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>The current implementation of dbsize doesn't handle tables in</title>
<updated>2004-09-02T00:55:22+00:00</updated>
<author>
<name>Bruce Momjian</name>
<email>bruce@momjian.us</email>
</author>
<published>2004-09-02T00:55:22+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/postgresql.git/commit/?id=528ac10c7c73883f5b12db2f7bd627652f869bab'/>
<id>528ac10c7c73883f5b12db2f7bd627652f869bab</id>
<content type='text'>
tablespaces correctly, and is quite restricted on objects covered (only
tables and databases, but not tablespaces and indexes).

The attached patch contributes:

- database_size(name)
- relation_size(text)
These are the well-known functions, tablespace-aware.

- pg_tablespace_size(oid)
- pg_database_size(oid)
- pg_relation_size(oid)
Tablespace-aware implementations, used by the upper functions.
pg_relation_size will report sizes of indexes as well.

- pg_size_pretty(bigint)
Formatting of sizes, to display '146MB' instead of '152885668'

Andreas Pflug
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
tablespaces correctly, and is quite restricted on objects covered (only
tables and databases, but not tablespaces and indexes).

The attached patch contributes:

- database_size(name)
- relation_size(text)
These are the well-known functions, tablespace-aware.

- pg_tablespace_size(oid)
- pg_database_size(oid)
- pg_relation_size(oid)
Tablespace-aware implementations, used by the upper functions.
pg_relation_size will report sizes of indexes as well.

- pg_size_pretty(bigint)
Formatting of sizes, to display '146MB' instead of '152885668'

Andreas Pflug
</pre>
</div>
</content>
</entry>
</feed>
