Content-Length: 303957 | pFad | http://github.com/postgrespro/postgres/commit/57a7a3adfe4eadb471bb45a7effb1a99ebb00a7b

75 Remove unused struct member, enforce multi_insert callback presence. · postgrespro/postgres@57a7a3a · GitHub
Skip to content

Commit 57a7a3a

Browse files
committed
Remove unused struct member, enforce multi_insert callback presence.
Author: David Rowley, Andres Freund Discussion: https://postgr.es/m/CAKJS1f9=9phmm66diAji4gvHnWSrK7BGFoNct+mEUT_c8pPOjw@mail.gmail.com
1 parent ea97e44 commit 57a7a3a

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/backend/access/table/tableamapi.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ GetTableAmRoutine(Oid amhandler)
7272
Assert(routine->tuple_insert_speculative != NULL);
7373
Assert(routine->tuple_complete_speculative != NULL);
7474

75+
Assert(routine->multi_insert != NULL);
7576
Assert(routine->tuple_delete != NULL);
7677
Assert(routine->tuple_update != NULL);
7778
Assert(routine->tuple_lock != NULL);

src/backend/commands/copy.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,6 @@ typedef struct CopyMultiInsertInfo
277277
List *multiInsertBuffers; /* List of tracked CopyMultiInsertBuffers */
278278
int bufferedTuples; /* number of tuples buffered over all buffers */
279279
int bufferedBytes; /* number of bytes from all buffered tuples */
280-
int nbuffers; /* number of buffers we're tracking */
281280
CopyState cstate; /* Copy state for this CopyMultiInsertInfo */
282281
EState *estate; /* Executor state used for COPY */
283282
CommandId mycid; /* Command Id used for COPY */
@@ -2393,7 +2392,6 @@ CopyMultiInsertInfoInit(CopyMultiInsertInfo *miinfo, ResultRelInfo *rri,
23932392
miinfo->multiInsertBuffers = NIL;
23942393
miinfo->bufferedTuples = 0;
23952394
miinfo->bufferedBytes = 0;
2396-
miinfo->nbuffers = 0;
23972395
miinfo->cstate = cstate;
23982396
miinfo->estate = estate;
23992397
miinfo->mycid = mycid;

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/57a7a3adfe4eadb471bb45a7effb1a99ebb00a7b

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy