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
912b3a6f
Commit
912b3a6f
authored
25 years ago
by
Bruce Momjian
Browse files
Options
Downloads
Patches
Plain Diff
More comments.
parent
b6d6cffa
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc/src/sgml/ref/comment.sgml
+22
-2
22 additions, 2 deletions
doc/src/sgml/ref/comment.sgml
with
22 additions
and
2 deletions
doc/src/sgml/ref/comment.sgml
+
22
−
2
View file @
912b3a6f
<!--
<!--
$Header: /cvsroot/pgsql/doc/src/sgml/ref/comment.sgml,v 1.
1
1999/10/26 03:
48:58
momjian Exp $
$Header: /cvsroot/pgsql/doc/src/sgml/ref/comment.sgml,v 1.
2
1999/10/26 03:
53:35
momjian Exp $
Postgres documentation
Postgres documentation
-->
-->
...
@@ -103,6 +103,7 @@ COMMENT
...
@@ -103,6 +103,7 @@ COMMENT
easily retrieved with <application>psql's</application>
easily retrieved with <application>psql's</application>
<emphasize>\dd</emphasize> command.
<emphasize>\dd</emphasize> command.
To remove a comment, use <literal>''</literal>.
To remove a comment, use <literal>''</literal>.
Comments are automatically dropped when the object is dropped.
</para>
</para>
</refsect1>
</refsect1>
...
@@ -111,12 +112,31 @@ COMMENT
...
@@ -111,12 +112,31 @@ COMMENT
Usage
Usage
</title>
</title>
<para>
<para>
c
omment the table <literal>mytable</literal>:
C
omment the table <literal>mytable</literal>:
<programlisting>
<programlisting>
COMMENT ON mytable IS 'This is my table.';
COMMENT ON mytable IS 'This is my table.';
</programlisting>
</programlisting>
</para>
</para>
<para>
Some more examples:
<programlisting>
COMMENT ON DATABASE my_database IS 'Development Database';
COMMENT ON INDEX my_index IS 'Enforces uniqueness on employee id';
COMMENT ON RULE my_rule IS 'Logs UPDATES of employee records';
COMMENT ON SEQUENCE my_sequence IS 'Used to generate primary keys';
COMMENT ON TABLE my_table IS 'Employee Information';
COMMENT ON TYPE my_type IS 'Complex Number support';
COMMENT ON VIEW my_view IS 'View of departmental costs';
COMMENT ON COLUMN my_table.my_field IS 'Employee ID number';
COMMENT ON AGGREGATE my_aggregate float8 IS 'Computes sample variance';
COMMENT ON FUNCTION my_function (datetime) IS 'Returns Roman Numeral';
COMMENT ON OPERATOR ^ (text, text) IS 'Performs intersection of two text';
COMMENT ON TRIGGER my_trigger ON my_table IS 'Used for R.I.';
</programlisting>
</para>
</refsect1>
</refsect1>
<refsect1 id="R1-SQL-COMMENT-3">
<refsect1 id="R1-SQL-COMMENT-3">
...
...
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