Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
a666d285
Commit
a666d285
authored
16 years ago
by
Peter Eisentraut
Browse files
Options
Downloads
Patches
Plain Diff
Add note that TRUNCATE uses an access exclusive lock. This apparently
surprised/confused some users.
parent
e05c5a90
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc/src/sgml/ref/truncate.sgml
+8
-1
8 additions, 1 deletion
doc/src/sgml/ref/truncate.sgml
with
8 additions
and
1 deletion
doc/src/sgml/ref/truncate.sgml
+
8
−
1
View file @
a666d285
<!--
<!--
$PostgreSQL: pgsql/doc/src/sgml/ref/truncate.sgml,v 1.3
0
2008/1
1
/1
4
10:
22:47
petere Exp $
$PostgreSQL: pgsql/doc/src/sgml/ref/truncate.sgml,v 1.3
1
2008/1
2
/1
8
10:
45:00
petere Exp $
PostgreSQL documentation
PostgreSQL documentation
-->
-->
...
@@ -102,6 +102,13 @@ TRUNCATE [ TABLE ] <replaceable class="PARAMETER">name</replaceable> [, ... ]
...
@@ -102,6 +102,13 @@ TRUNCATE [ TABLE ] <replaceable class="PARAMETER">name</replaceable> [, ... ]
to truncate it.
to truncate it.
</para>
</para>
<para>
<command>TRUNCATE</> acquires an access exclusive lock on the
tables in operates on, which blocks all other concurrent operations
on the table. If concurrent access to a table is required, then
the <command>DELETE</> command should be used instead.
</para>
<para>
<para>
<command>TRUNCATE</> cannot be used on a table that has foreign-key
<command>TRUNCATE</> cannot be used on a table that has foreign-key
references from other tables, unless all such tables are also truncated
references from other tables, unless all such tables are also truncated
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment