Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
ca71c661
Commit
ca71c661
authored
Feb 15, 2001
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update FAQ.
parent
bb1095c6
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
60 additions
and
22 deletions
+60
-22
doc/FAQ
doc/FAQ
+28
-11
doc/src/FAQ/FAQ.html
doc/src/FAQ/FAQ.html
+32
-11
No files found.
doc/FAQ
View file @
ca71c661
...
@@ -83,12 +83,14 @@
...
@@ -83,12 +83,14 @@
other users?
other users?
4.17) What is an OID? What is a TID?
4.17) What is an OID? What is a TID?
4.18) What is the meaning of some of the terms used in PostgreSQL?
4.18) What is the meaning of some of the terms used in PostgreSQL?
4.19) How do I tell what PostgreSQL version I am running?
4.19) Why do I get the error "ERROR: Memory exhausted in
4.20) My large-object operations get invalid large obj descriptor.
AllocSetAlloc()?"
4.20) How do I tell what PostgreSQL version I am running?
4.21) My large-object operations get invalid large obj descriptor.
Why?
Why?
4.2
1
) How do I create a column that will default to the current time?
4.2
2
) How do I create a column that will default to the current time?
4.2
2
) Why are my subqueries using IN so slow?
4.2
3
) Why are my subqueries using IN so slow?
4.2
3
) How do I perform an outer join?
4.2
4
) How do I perform an outer join?
Extending PostgreSQL
Extending PostgreSQL
...
@@ -97,7 +99,7 @@
...
@@ -97,7 +99,7 @@
5.2) How can I contribute some nifty new types and functions to
5.2) How can I contribute some nifty new types and functions to
PostgreSQL?
PostgreSQL?
5.3) How do I write a C function to return a tuple?
5.3) How do I write a C function to return a tuple?
5.
4
) I have changed a source file. Why does the recompile not see the
5.
3
) I have changed a source file. Why does the recompile not see the
change?
change?
_________________________________________________________________
_________________________________________________________________
...
@@ -883,11 +885,26 @@ BYTEA bytea variable-length byte array (null-safe)
...
@@ -883,11 +885,26 @@ BYTEA bytea variable-length byte array (null-safe)
A list of general database terms can be found at:
A list of general database terms can be found at:
http://www.comptechnews.com/~reaster/dbdesign.html
http://www.comptechnews.com/~reaster/dbdesign.html
4.19) How do I tell what PostgreSQL version I am running?
4.19) Why do I get the error "ERROR: Memory exhausted in AllocSetAlloc()?"
It is possible you have run out of virtual memory on your system, or
your kernel has a low limit for certain resources. Try this before
starting the postmaster:
ulimit -d 262144
limit datasize 256m
Depending on your shell, only one of these may succeed, but it will
set your process data segment limit much higher and perhaps allow the
query to complete. This command applies to the current process, and
all subprocesses created after the command is run. If you are having a
problem with the SQL client because the backend is returning too much
data, try it before starting the client.
4.20) How do I tell what PostgreSQL version I am running?
From psql, type select version();
From psql, type select version();
4.2
0
) My large-object operations get invalid large obj descriptor. Why?
4.2
1
) My large-object operations get invalid large obj descriptor. Why?
You need to put BEGIN WORK and COMMIT around any use of a large object
You need to put BEGIN WORK and COMMIT around any use of a large object
handle, that is, surrounding lo_open ... lo_close.
handle, that is, surrounding lo_open ... lo_close.
...
@@ -901,12 +918,12 @@ BYTEA bytea variable-length byte array (null-safe)
...
@@ -901,12 +918,12 @@ BYTEA bytea variable-length byte array (null-safe)
If you are using a client interface like ODBC you may need to set
If you are using a client interface like ODBC you may need to set
auto-commit off.
auto-commit off.
4.2
1
) How do I create a column that will default to the current time?
4.2
2
) How do I create a column that will default to the current time?
Use now():
Use now():
CREATE TABLE test (x int, modtime timestamp DEFAULT now() );
CREATE TABLE test (x int, modtime timestamp DEFAULT now() );
4.2
2
) Why are my subqueries using IN so slow?
4.2
3
) Why are my subqueries using IN so slow?
Currently, we join subqueries to outer queries by sequentially
Currently, we join subqueries to outer queries by sequentially
scanning the result of the subquery for each row of the outer query. A
scanning the result of the subquery for each row of the outer query. A
...
@@ -922,7 +939,7 @@ SELECT *
...
@@ -922,7 +939,7 @@ SELECT *
We hope to fix this limitation in a future release.
We hope to fix this limitation in a future release.
4.2
3
) How do I perform an outer join?
4.2
4
) How do I perform an outer join?
PostgreSQL 7.1 and later supports outer joins using the SQL standard
PostgreSQL 7.1 and later supports outer joins using the SQL standard
syntax. Here are two examples:
syntax. Here are two examples:
...
...
doc/src/FAQ/FAQ.html
View file @
ca71c661
...
@@ -127,15 +127,17 @@
...
@@ -127,15 +127,17 @@
<SMALL>
TID
</SMALL>
?
<BR>
<SMALL>
TID
</SMALL>
?
<BR>
<A
href=
"#4.18"
>
4.18
</A>
) What is the meaning of some of the terms
<A
href=
"#4.18"
>
4.18
</A>
) What is the meaning of some of the terms
used in PostgreSQL?
<BR>
used in PostgreSQL?
<BR>
<A
href=
"#4.19"
>
4.19
</A>
) How do I tell what PostgreSQL version I
<A
href=
"#4.19"
>
4.19
</A>
) Why do I get the error
<I>
"ERROR:
Memory exhausted in AllocSetAlloc()?"
</I><BR>
<A
href=
"#4.20"
>
4.20
</A>
) How do I tell what PostgreSQL version I
am running?
<BR>
am running?
<BR>
<A
href=
"#4.2
0"
>
4.20
</A>
) My large-object operations get
<A
href=
"#4.2
1"
>
4.21
</A>
) My large-object operations get
<I>
invalid large obj descriptor.
</I>
Why?
<BR>
<I>
invalid large obj descriptor.
</I>
Why?
<BR>
<A
href=
"#4.2
1"
>
4.21
</A>
) How do I create a column that will
<A
href=
"#4.2
2"
>
4.22
</A>
) How do I create a column that will
default to the current time?
<BR>
default to the current time?
<BR>
<A
href=
"#4.2
2"
>
4.22
</A>
) Why are my subqueries using
<A
href=
"#4.2
3"
>
4.23
</A>
) Why are my subqueries using
<CODE><SMALL>
IN
</SMALL></CODE>
so slow?
<BR>
<CODE><SMALL>
IN
</SMALL></CODE>
so slow?
<BR>
<A
href=
"#4.2
3"
>
4.23
</A>
) How do I perform an outer join?
<BR>
<A
href=
"#4.2
4"
>
4.24
</A>
) How do I perform an outer join?
<BR>
<CENTER>
<CENTER>
...
@@ -147,7 +149,7 @@
...
@@ -147,7 +149,7 @@
and functions to PostgreSQL?
<BR>
and functions to PostgreSQL?
<BR>
<A
href=
"#5.3"
>
5.3
</A>
) How do I write a C function to return a
<A
href=
"#5.3"
>
5.3
</A>
) How do I write a C function to return a
tuple?
<BR>
tuple?
<BR>
<A
href=
"#5.4"
>
5.
4
</A>
) I have changed a source file. Why does the
<A
href=
"#5.4"
>
5.
3
</A>
) I have changed a source file. Why does the
recompile not see the change?
<BR>
recompile not see the change?
<BR>
<HR>
<HR>
...
@@ -1132,13 +1134,32 @@ BYTEA bytea variable-length byte array (null-safe)
...
@@ -1132,13 +1134,32 @@ BYTEA bytea variable-length byte array (null-safe)
<P>
A list of general database terms can be found at:
<A
href=
<P>
A list of general database terms can be found at:
<A
href=
"http://www.comptechnews.com/~reaster/dbdesign.html"
>
http://www.comptechnews.com/~reaster/dbdesign.html
</A></P>
"http://www.comptechnews.com/~reaster/dbdesign.html"
>
http://www.comptechnews.com/~reaster/dbdesign.html
</A></P>
<H4><A
name=
"4.19"
>
4.19
</A>
) How do I tell what PostgreSQL version
<H4><A
name=
"4.19"
>
4.19
</A>
) Why do I get the error
<I>
"ERROR:
Memory exhausted in AllocSetAlloc()?"
</I><BR>
</H4>
<P>
It is possible you have run out of virtual memory on your
system, or your kernel has a low limit for certain resources. Try
this before starting the
<I>
postmaster:
</I></P>
<PRE>
ulimit -d 262144
limit datasize 256m
</PRE>
Depending on your shell, only one of these may succeed, but it will
set your process data segment limit much higher and perhaps allow
the query to complete. This command applies to the current process,
and all subprocesses created after the command is run. If you are
having a problem with the
<SMALL>
SQL
</SMALL>
client because the
backend is returning too much data, try it before starting the
client.
<H4><A
name=
"4.20"
>
4.20
</A>
) How do I tell what PostgreSQL version
I am running?
<BR>
I am running?
<BR>
</H4>
</H4>
<P>
From
<I>
psql,
</I>
type
<CODE>
select version();
</CODE></P>
<P>
From
<I>
psql,
</I>
type
<CODE>
select version();
</CODE></P>
<H4><A
name=
"4.2
0"
>
4.20
</A>
) My large-object operations get
<H4><A
name=
"4.2
1"
>
4.21
</A>
) My large-object operations get
<I>
invalid large obj descriptor.
</I>
Why?
<BR>
<I>
invalid large obj descriptor.
</I>
Why?
<BR>
</H4>
</H4>
...
@@ -1155,7 +1176,7 @@ BYTEA bytea variable-length byte array (null-safe)
...
@@ -1155,7 +1176,7 @@ BYTEA bytea variable-length byte array (null-safe)
<P>
If you are using a client interface like
<SMALL>
ODBC
</SMALL>
you
<P>
If you are using a client interface like
<SMALL>
ODBC
</SMALL>
you
may need to set
<CODE>
auto-commit off.
</CODE></P>
may need to set
<CODE>
auto-commit off.
</CODE></P>
<H4><A
name=
"4.2
1"
>
4.21
</A>
) How do I create a column that will
<H4><A
name=
"4.2
2"
>
4.22
</A>
) How do I create a column that will
default to the current time?
<BR>
default to the current time?
<BR>
</H4>
</H4>
...
@@ -1165,7 +1186,7 @@ BYTEA bytea variable-length byte array (null-safe)
...
@@ -1165,7 +1186,7 @@ BYTEA bytea variable-length byte array (null-safe)
</CODE>
</CODE>
</PRE>
</PRE>
<H4><A
name=
"4.2
2"
>
4.22
</A>
) Why are my subqueries using
<H4><A
name=
"4.2
3"
>
4.23
</A>
) Why are my subqueries using
<CODE><SMALL>
IN
</SMALL></CODE>
so slow?
<BR>
<CODE><SMALL>
IN
</SMALL></CODE>
so slow?
<BR>
</H4>
</H4>
...
@@ -1188,7 +1209,7 @@ BYTEA bytea variable-length byte array (null-safe)
...
@@ -1188,7 +1209,7 @@ BYTEA bytea variable-length byte array (null-safe)
</PRE>
</PRE>
We hope to fix this limitation in a future release.
We hope to fix this limitation in a future release.
<H4><A
name=
"4.2
3"
>
4.23
</A>
) How do I perform an outer join?
<BR>
<H4><A
name=
"4.2
4"
>
4.24
</A>
) How do I perform an outer join?
<BR>
</H4>
</H4>
<P>
PostgreSQL 7.1 and later supports outer joins using the SQL
<P>
PostgreSQL 7.1 and later supports outer joins using the SQL
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment