Remove pgsql_tmp directory FAQ item.
This commit is contained in:
parent
73f630500b
commit
cde6056e34
34
doc/FAQ
34
doc/FAQ
@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
Frequently Asked Questions (FAQ) for PostgreSQL
|
Frequently Asked Questions (FAQ) for PostgreSQL
|
||||||
|
|
||||||
Last updated: Tue Feb 1 16:10:47 EST 2005
|
Last updated: Wed Feb 2 08:40:42 EST 2005
|
||||||
|
|
||||||
Current maintainer: Bruce Momjian (pgman@candle.pha.pa.us)
|
Current maintainer: Bruce Momjian (pgman@candle.pha.pa.us)
|
||||||
|
|
||||||
@ -41,10 +41,9 @@
|
|||||||
3.3) How do I tune the database engine for better performance?
|
3.3) How do I tune the database engine for better performance?
|
||||||
3.4) What debugging features are available?
|
3.4) What debugging features are available?
|
||||||
3.5) Why do I get "Sorry, too many clients" when trying to connect?
|
3.5) Why do I get "Sorry, too many clients" when trying to connect?
|
||||||
3.6) What is in the pgsql_tmp directory?
|
3.6) Why do I need to do a dump and restore to upgrade PostgreSQL
|
||||||
3.7) Why do I need to do a dump and restore to upgrade PostgreSQL
|
|
||||||
releases?
|
releases?
|
||||||
3.8) What computer hardware should I use?
|
3.7) What computer hardware should I use?
|
||||||
|
|
||||||
Operational Questions
|
Operational Questions
|
||||||
|
|
||||||
@ -430,18 +429,7 @@
|
|||||||
processes it can start by changing the max_connections value in
|
processes it can start by changing the max_connections value in
|
||||||
postgresql.conf and restarting the postmaster.
|
postgresql.conf and restarting the postmaster.
|
||||||
|
|
||||||
3.6) What is in the pgsql_tmp directory?
|
3.6) Why do I need to do a dump and restore to upgrade between major
|
||||||
|
|
||||||
This directory contains temporary files generated by the query
|
|
||||||
executor. For example, if a sort needs to be done to satisfy an ORDER
|
|
||||||
BY and the sort requires more space than the backend's -S parameter
|
|
||||||
allows, then temporary files are created here to hold the extra data.
|
|
||||||
|
|
||||||
The temporary files are usually deleted automatically, but might
|
|
||||||
remain if a backend crashes during a sort. A stop and restart of the
|
|
||||||
postmaster will remove files from those directories.
|
|
||||||
|
|
||||||
3.7) Why do I need to do a dump and restore to upgrade between major
|
|
||||||
PostgreSQL releases?
|
PostgreSQL releases?
|
||||||
|
|
||||||
The PostgreSQL team makes only small changes between minor releases,
|
The PostgreSQL team makes only small changes between minor releases,
|
||||||
@ -452,7 +440,7 @@
|
|||||||
files. A dump outputs data in a generic format that can then be loaded
|
files. A dump outputs data in a generic format that can then be loaded
|
||||||
in using the new internal format.
|
in using the new internal format.
|
||||||
|
|
||||||
3.8) What computer hardware should I use?
|
3.7) What computer hardware should I use?
|
||||||
|
|
||||||
Because PC hardware is mostly compatible, people tend to believe that
|
Because PC hardware is mostly compatible, people tend to believe that
|
||||||
all PC hardware is of equal quality. It is not. ECC RAM, SCSI, and
|
all PC hardware is of equal quality. It is not. ECC RAM, SCSI, and
|
||||||
@ -651,12 +639,12 @@
|
|||||||
|
|
||||||
4.10) What is the difference between the various character types?
|
4.10) What is the difference between the various character types?
|
||||||
|
|
||||||
Type Internal Name Notes
|
Type Internal Name Notes
|
||||||
VARCHAR(n) varchar size specifies maximum length, no padding
|
VARCHAR(n) varchar size specifies maximum length, no padding
|
||||||
CHAR(n) bpchar blank padded to the specified fixed length
|
CHAR(n) bpchar blank padded to the specified fixed length
|
||||||
TEXT text no specific upper limit on length
|
TEXT text no specific upper limit on length
|
||||||
BYTEA bytea variable-length byte array (null-byte safe)
|
BYTEA bytea variable-length byte array (null-byte safe)
|
||||||
"char" char one character
|
"char" char one character
|
||||||
|
|
||||||
You will see the internal name when examining system catalogs and in
|
You will see the internal name when examining system catalogs and in
|
||||||
some error messages.
|
some error messages.
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
alink="#0000ff">
|
alink="#0000ff">
|
||||||
<H1>Frequently Asked Questions (FAQ) for PostgreSQL</H1>
|
<H1>Frequently Asked Questions (FAQ) for PostgreSQL</H1>
|
||||||
|
|
||||||
<P>Last updated: Tue Feb 1 16:10:47 EST 2005</P>
|
<P>Last updated: Wed Feb 2 08:40:42 EST 2005</P>
|
||||||
|
|
||||||
<P>Current maintainer: Bruce Momjian (<A href=
|
<P>Current maintainer: Bruce Momjian (<A href=
|
||||||
"mailto:pgman@candle.pha.pa.us">pgman@candle.pha.pa.us</A>)
|
"mailto:pgman@candle.pha.pa.us">pgman@candle.pha.pa.us</A>)
|
||||||
@ -61,11 +61,9 @@
|
|||||||
<A href="#3.4">3.4</A>) What debugging features are available?<BR>
|
<A href="#3.4">3.4</A>) What debugging features are available?<BR>
|
||||||
<A href="#3.5">3.5</A>) Why do I get <I>"Sorry, too many
|
<A href="#3.5">3.5</A>) Why do I get <I>"Sorry, too many
|
||||||
clients"</I> when trying to connect?<BR>
|
clients"</I> when trying to connect?<BR>
|
||||||
<A href="#3.6">3.6</A>) What is in the <I>pgsql_tmp</I>
|
<A href="#3.6">3.6</A>) Why do I need to do a dump and restore
|
||||||
directory?<BR>
|
|
||||||
<A href="#3.7">3.7</A>) Why do I need to do a dump and restore
|
|
||||||
to upgrade PostgreSQL releases?<BR>
|
to upgrade PostgreSQL releases?<BR>
|
||||||
<A href="#3.8">3.8</A>) What computer hardware should I use?<BR>
|
<A href="#3.7">3.7</A>) What computer hardware should I use?<BR>
|
||||||
|
|
||||||
|
|
||||||
<H2 align="center">Operational Questions</H2>
|
<H2 align="center">Operational Questions</H2>
|
||||||
@ -573,19 +571,7 @@
|
|||||||
<I>max_connections</I> value in <I>postgresql.conf</I> and
|
<I>max_connections</I> value in <I>postgresql.conf</I> and
|
||||||
restarting the <I>postmaster</I>.</P>
|
restarting the <I>postmaster</I>.</P>
|
||||||
|
|
||||||
<H4><A name="3.6">3.6</A>) What is in the <I>pgsql_tmp</I> directory?</H4>
|
<H4><A name="3.6">3.6</A>) Why do I need to do a dump and restore
|
||||||
|
|
||||||
<P>This directory contains temporary files generated by the query
|
|
||||||
executor. For example, if a sort needs to be done to satisfy an
|
|
||||||
<SMALL>ORDER BY</SMALL> and the sort requires more space than the
|
|
||||||
backend's <I>-S</I> parameter allows, then temporary files are created
|
|
||||||
here to hold the extra data.</P>
|
|
||||||
|
|
||||||
<P>The temporary files are usually deleted automatically, but might
|
|
||||||
remain if a backend crashes during a sort. A stop and restart of the
|
|
||||||
<I>postmaster</I> will remove files from those directories.</P>
|
|
||||||
|
|
||||||
<H4><A name="3.7">3.7</A>) Why do I need to do a dump and restore
|
|
||||||
to upgrade between major PostgreSQL releases?</H4>
|
to upgrade between major PostgreSQL releases?</H4>
|
||||||
|
|
||||||
<P>The PostgreSQL team makes only small changes between minor releases,
|
<P>The PostgreSQL team makes only small changes between minor releases,
|
||||||
@ -596,7 +582,7 @@
|
|||||||
data in a generic format that can then be loaded in using the new internal
|
data in a generic format that can then be loaded in using the new internal
|
||||||
format.</P>
|
format.</P>
|
||||||
|
|
||||||
<H4><A name="3.8">3.8</A>) What computer hardware should I use?</H4>
|
<H4><A name="3.7">3.7</A>) What computer hardware should I use?</H4>
|
||||||
|
|
||||||
<P>Because PC hardware is mostly compatible, people tend to believe that
|
<P>Because PC hardware is mostly compatible, people tend to believe that
|
||||||
all PC hardware is of equal quality. It is not. ECC RAM, SCSI, and
|
all PC hardware is of equal quality. It is not. ECC RAM, SCSI, and
|
||||||
@ -672,7 +658,7 @@
|
|||||||
table, and a database?</H4>
|
table, and a database?</H4>
|
||||||
|
|
||||||
<P>These are the limits:</P>
|
<P>These are the limits:</P>
|
||||||
<CENTER>
|
<BLOCKQUOTE>
|
||||||
<TABLE BORDER=1>
|
<TABLE BORDER=1>
|
||||||
<TR><TD>Maximum size for a database?</TD><TD>unlimited (32 TB databases
|
<TR><TD>Maximum size for a database?</TD><TD>unlimited (32 TB databases
|
||||||
exist)</TD></TR>
|
exist)</TD></TR>
|
||||||
@ -685,8 +671,7 @@ on column types</TD></TR>
|
|||||||
<TR><TD>Maximum number of indexes on a
|
<TR><TD>Maximum number of indexes on a
|
||||||
table?</TD><TD>unlimited</TD></TR>
|
table?</TD><TD>unlimited</TD></TR>
|
||||||
</TABLE>
|
</TABLE>
|
||||||
</CENTER>
|
</BLOCKQUOTE>
|
||||||
<BR>
|
|
||||||
|
|
||||||
<P>Of course, these are not actually unlimited, but limited to
|
<P>Of course, these are not actually unlimited, but limited to
|
||||||
available disk space and memory/swap space. Performance may suffer
|
available disk space and memory/swap space. Performance may suffer
|
||||||
@ -837,7 +822,7 @@ table?</TD><TD>unlimited</TD></TR>
|
|||||||
|
|
||||||
<H4><A name="4.10">4.10</A>) What is the difference between the
|
<H4><A name="4.10">4.10</A>) What is the difference between the
|
||||||
various character types?</H4>
|
various character types?</H4>
|
||||||
<CENTER>
|
<BLOCKQUOTE>
|
||||||
<TABLE BORDER=1>
|
<TABLE BORDER=1>
|
||||||
<TR><TH>Type</TH><TH>Internal Name</TH><TH>Notes</TH></TR>
|
<TR><TH>Type</TH><TH>Internal Name</TH><TH>Notes</TH></TR>
|
||||||
<TR><TD>VARCHAR(n)</TD><TD>varchar</TD><TD>size specifies maximum
|
<TR><TD>VARCHAR(n)</TD><TD>varchar</TD><TD>size specifies maximum
|
||||||
@ -850,7 +835,8 @@ length</TD></TR>
|
|||||||
(null-byte safe)</TD></TR>
|
(null-byte safe)</TD></TR>
|
||||||
<TR><TD>"char"</TD><TD>char</TD><TD>one character</TD></TR>
|
<TR><TD>"char"</TD><TD>char</TD><TD>one character</TD></TR>
|
||||||
</TABLE>
|
</TABLE>
|
||||||
</CENTER>
|
</BLOCKQUOTE>
|
||||||
|
|
||||||
<P>You will see the internal name when examining system catalogs
|
<P>You will see the internal name when examining system catalogs
|
||||||
and in some error messages.</P>
|
and in some error messages.</P>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user