mirror of
https://github.com/postgres/postgres.git
synced 2025-08-28 18:48:04 +03:00
Remove trailing whitespace from *.sgml files.
Historically we've been lax about this, but seeing that we're not
lax in C files, there doesn't seem to be a good reason to be so
in the documentation. Remove the existing occurrences (mostly
though not entirely in copied-n-pasted psql output), and modify
.gitattributes so that "git diff --check" will warn about future
cases.
While at it, add *.pm to the set of extensions .gitattributes
knows about, and remove some obsolete entries for files that
we don't have in the tree anymore.
Per followup discussion of commit 5a892c9b1
.
Discussion: https://postgr.es/m/E1nfcV1-000kOR-E5@gemulon.postgresql.org
This commit is contained in:
@@ -4992,7 +4992,7 @@ testdb=> <userinput>\d my_table</userinput>
|
||||
Column | Type | Collation | Nullable | Default
|
||||
--------+---------+-----------+----------+---------
|
||||
first | integer | | not null | 0
|
||||
second | text | | |
|
||||
second | text | | |
|
||||
</programlisting>
|
||||
Now we change the prompt to something more interesting:
|
||||
<programlisting>
|
||||
@@ -5123,7 +5123,7 @@ testdb=> <userinput>\df int*pl * bigint</userinput>
|
||||
with the <command>\crosstabview</command> command:
|
||||
<programlisting>
|
||||
testdb=> <userinput>SELECT first, second, first > 2 AS gt2 FROM my_table;</userinput>
|
||||
first | second | gt2
|
||||
first | second | gt2
|
||||
-------+--------+-----
|
||||
1 | one | f
|
||||
2 | two | f
|
||||
@@ -5132,11 +5132,11 @@ testdb=> <userinput>SELECT first, second, first > 2 AS gt2 FROM my_table;<
|
||||
(4 rows)
|
||||
|
||||
testdb=> <userinput>\crosstabview first second</userinput>
|
||||
first | one | two | three | four
|
||||
first | one | two | three | four
|
||||
-------+-----+-----+-------+------
|
||||
1 | f | | |
|
||||
2 | | f | |
|
||||
3 | | | t |
|
||||
1 | f | | |
|
||||
2 | | f | |
|
||||
3 | | | t |
|
||||
4 | | | | t
|
||||
(4 rows)
|
||||
</programlisting>
|
||||
@@ -5148,7 +5148,7 @@ testdb=> <userinput>SELECT t1.first as "A", t2.first+100 AS "B", t1.first*(t2
|
||||
testdb(> <userinput>row_number() over(order by t2.first) AS ord</userinput>
|
||||
testdb(> <userinput>FROM my_table t1 CROSS JOIN my_table t2 ORDER BY 1 DESC</userinput>
|
||||
testdb(> <userinput>\crosstabview "A" "B" "AxB" ord</userinput>
|
||||
A | 101 | 102 | 103 | 104
|
||||
A | 101 | 102 | 103 | 104
|
||||
---+-----+-----+-----+-----
|
||||
4 | 404 | 408 | 412 | 416
|
||||
3 | 303 | 306 | 309 | 312
|
||||
|
Reference in New Issue
Block a user