Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
1a0ebe61
Commit
1a0ebe61
authored
Jun 03, 2009
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add comment about why "((void) 0)" is used in copy macros.
parent
44ead233
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
src/backend/commands/copy.c
src/backend/commands/copy.c
+3
-2
No files found.
src/backend/commands/copy.c
View file @
1a0ebe61
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/commands/copy.c,v 1.3
09 2009/05/29 13:54:52 meskes
Exp $
* $PostgreSQL: pgsql/src/backend/commands/copy.c,v 1.3
10 2009/06/03 14:48:33 momjian
Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -175,7 +175,8 @@ typedef struct
...
@@ -175,7 +175,8 @@ typedef struct
/*
/*
* These macros centralize code used to process line_buf and raw_buf buffers.
* These macros centralize code used to process line_buf and raw_buf buffers.
* They are macros because they often do continue/break control and to avoid
* They are macros because they often do continue/break control and to avoid
* function call overhead in tight COPY loops.
* function call overhead in tight COPY loops. "((void) 0)" is used to silence
* compiler warnings.
*
*
* We must use "if (1)" because "do {} while(0)" overrides the continue/break
* We must use "if (1)" because "do {} while(0)" overrides the continue/break
* processing. See http://www.cit.gu.edu.au/~anthony/info/C/C.macros.
* processing. See http://www.cit.gu.edu.au/~anthony/info/C/C.macros.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment