Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit322d65c

Browse files
committed
UPdate developers faq
1 parent7bd58b4 commit322d65c

File tree

2 files changed

+20
-20
lines changed

2 files changed

+20
-20
lines changed

‎doc/FAQ_DEV

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
Developer's Frequently Asked Questions (FAQ) for PostgreSQL
33

4-
Last updated: FriDec 24 11:43:42 EST 1999
4+
Last updated: FriJun 9 21:54:54 EDT 2000
55

66
Current maintainer: Bruce Momjian (pgman@candle.pha.pa.us)
77

@@ -91,11 +91,11 @@ s
9191
or
9292
; Cmd to set tab stops &etc for working with PostgreSQL code
9393
(c-add-style "pgsql"
94-
'("bsd"
94+
'("bsd"
9595
(indent-tabs-mode . t)
9696
(c-basic-offset . 4)
9797
(tab-width . 4)
98-
(c-offsets-alist .
98+
(c-offsets-alist .
9999
((case-label . +))))
100100
t) ; t = set this mode on
101101

@@ -309,8 +309,8 @@ c-mode)
309309
you to query the system catalogs. This is the preferred way to access
310310
system tables, because the first call to the cache loads the needed
311311
rows, and future requests can return the results without accessing the
312-
base table.Some of thecaches use system table indexes to look up
313-
tuples. Alist of available caches is located in
312+
base table.Thecaches use system table indexes to look up tuples. A
313+
list of available caches is located in
314314
src/backend/utils/cache/syscache.c.
315315
src/backend/utils/cache/lsyscache.c contains many column-specific
316316
cache lookup functions.
@@ -353,11 +353,12 @@ c-mode)
353353
is to use heap_tuplemodify() and pass it your palloc'ed tuple, and the
354354
values you want changed. It returns another palloc'ed tuple, which you
355355
pass to heap_replace(). You can delete tuples by passing the tuple's
356-
t_self to heap_destroy(). Remember, tuples can be either system cache
357-
versions, which may go away soon after you get them, buffer cache
358-
version, which will go away when you heap_getnext(), heap_endscan, or
359-
ReleaseBuffer(), in the heap_fetch() case. Or it may be a palloc'ed
360-
tuple, that you must pfree() when finished.
356+
t_self to heap_destroy(). You can use it for heap_update() too.
357+
Remember, tuples can be either system cache versions, which may go
358+
away soon after you get them, buffer cache versions, which go away
359+
when you heap_getnext(), heap_endscan, or ReleaseBuffer(), in the
360+
heap_fetch() case. Or it may be a palloc'ed tuple, that you must
361+
pfree() when finished.
361362

362363
10) What is elog()?
363364

‎doc/src/FAQ_DEV.html

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ <H1>
77
Developer's Frequently Asked Questions (FAQ) for PostgreSQL
88
</H1>
99
<P>
10-
Last updated:FriDec 24 11:43:42 EST 1999
10+
Last updated:FriJun 9 21:54:54 EDT 2000
1111
<P>
1212
Current maintainer:Bruce Momjian (<a
1313
href="mailto:pgman@candle.pha.pa.us">pgman@candle.pha.pa.us</a>)<BR>
@@ -113,15 +113,14 @@ <H3><a
113113
M-x set-variable tab-width
114114
or
115115
; Cmd to set tab stops &etc for working with PostgreSQL code
116-
(defun pgsql-mode ()
117-
"Set PostgreSQL C indenting conventions in current buffer."
118-
(interactive)
119-
(c-mode) ; necessary to make c-set-offset local!
120-
(setq tab-width 4) ; already buffer-local
121-
; (setq comment-column 48) ; already buffer-local
122-
(c-set-style "bsd")
123-
(c-set-offset 'case-label '+)
124-
)
116+
(c-add-style "pgsql"
117+
'("bsd"
118+
(indent-tabs-mode . t)
119+
(c-basic-offset . 4)
120+
(tab-width . 4)
121+
(c-offsets-alist .
122+
((case-label . +))))
123+
t) ; t = set this mode on
125124

126125
and add this to your autoload list (modify file path in macro):
127126

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp