mirror of
https://gitlab.com/depesz/explain.depesz.com.git
synced 2024-11-24 08:42:27 +02:00
Add clarification about comments
As suggested by ilmari on IRC
This commit is contained in:
parent
2f481dddc7
commit
937cf53ddc
@ -222,6 +222,7 @@ sub index {
|
||||
my $comments = $self->req->param( 'comments' );
|
||||
if ( defined $comments ) {
|
||||
$comments = undef if $comments =~ m{\A\s*\z};
|
||||
$comments = undef if $comments =~ m{\A\s*for\s+example:\s+\$\s+\\d\s+pg_proc}ism;
|
||||
}
|
||||
|
||||
# try
|
||||
|
@ -71,8 +71,46 @@ SELECT a, b
|
||||
FROM c
|
||||
WHERE d > now() - '5 minutes'::interval;"></textarea>
|
||||
|
||||
<label for="comments">Optionally add some comments here:</label>
|
||||
<textarea id="comments" name="comments"></textarea>
|
||||
<label for="comments">Optionally add some comments (such as table definitions) here:</label>
|
||||
<textarea id="comments" name="comments" class="auto-hint" title="For example:
|
||||
$ \d pg_proc
|
||||
Table "pg_catalog.pg_proc"
|
||||
Column │ Type │ Collation │ Nullable │ Default
|
||||
─────────────────┼──────────────┼───────────┼──────────┼─────────
|
||||
oid │ oid │ │ not null │
|
||||
proname │ name │ │ not null │
|
||||
pronamespace │ oid │ │ not null │
|
||||
proowner │ oid │ │ not null │
|
||||
prolang │ oid │ │ not null │
|
||||
procost │ real │ │ not null │
|
||||
prorows │ real │ │ not null │
|
||||
provariadic │ oid │ │ not null │
|
||||
prosupport │ regproc │ │ not null │
|
||||
prokind │ "char" │ │ not null │
|
||||
prosecdef │ boolean │ │ not null │
|
||||
proleakproof │ boolean │ │ not null │
|
||||
proisstrict │ boolean │ │ not null │
|
||||
proretset │ boolean │ │ not null │
|
||||
provolatile │ "char" │ │ not null │
|
||||
proparallel │ "char" │ │ not null │
|
||||
pronargs │ smallint │ │ not null │
|
||||
pronargdefaults │ smallint │ │ not null │
|
||||
prorettype │ oid │ │ not null │
|
||||
proargtypes │ oidvector │ │ not null │
|
||||
proallargtypes │ oid[] │ │ │
|
||||
proargmodes │ "char"[] │ │ │
|
||||
proargnames │ text[] │ C │ │
|
||||
proargdefaults │ pg_node_tree │ C │ │
|
||||
protrftypes │ oid[] │ │ │
|
||||
prosrc │ text │ C │ not null │
|
||||
probin │ text │ C │ │
|
||||
prosqlbody │ pg_node_tree │ C │ │
|
||||
proconfig │ text[] │ C │ │
|
||||
proacl │ aclitem[] │ │ │
|
||||
Indexes:
|
||||
"pg_proc_oid_index" PRIMARY KEY, btree (oid)
|
||||
"pg_proc_proname_args_nsp_index" UNIQUE CONSTRAINT, btree (proname, proargtypes, pronamespace)
|
||||
"></textarea>
|
||||
|
||||
</div>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user