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

Commitbb44a6b

Browse files
committed
Improve comment for OAT_POST_CREATE.
Clarify that the command counter may or may not have been incremented.We may want to change the behavior to be more consistent, but untilthat time, at least improve the comment.Discussion:https://postgr.es/m/CAHoZxqvN2eoic_CvjsAvpryyLyA2xG8JmsyMtKFFJz_1oFhfOg%40mail.gmail.comReported-by: Mary Xu
1 parent3d53b9e commitbb44a6b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

‎src/include/catalog/objectaccess.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@
1717
*
1818
* OAT_POST_CREATE should be invoked just after the object is created.
1919
* Typically, this is done after inserting the primary catalog records and
20-
* associated dependencies.
20+
* associated dependencies. The command counter may or may not be incremented
21+
* at the time the hook is invoked; if not, the extension can use SnapshotSelf
22+
* to get the new version of the tuple.
2123
*
2224
* OAT_DROP should be invoked just before deletion of objects; typically
2325
* deleteOneObject(). Its arguments are packed within ObjectAccessDrop.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp