diff options
author | Andres Freund <andres@anarazel.de> | 2019-05-23 16:25:48 -0700 |
---|---|---|
committer | Andres Freund <andres@anarazel.de> | 2019-05-23 16:32:36 -0700 |
commit | 73b8c3bd2889fed986044e15aefd0911f96ccdd3 (patch) | |
tree | 8fcd867ac811feecc99ed5f645088b73c44d5051 /src/backend/commands/createas.c | |
parent | 54487d1560619a0027e0651d1b8d715ca8fc388c (diff) | |
download | postgresql-73b8c3bd2889fed986044e15aefd0911f96ccdd3.tar.gz postgresql-73b8c3bd2889fed986044e15aefd0911f96ccdd3.zip |
tableam: Rename wrapper functions to match callback names.
Some of the wrapper functions didn't match the callback names. Many of
them due to staying "consistent" with historic naming of the wrapped
functionality. We decided that for most cases it's more important to
be for tableam to be consistent going forward, than with the past.
The one exception is beginscan/endscan/... because it'd have looked
odd to have systable_beginscan/endscan/... with a different naming
scheme, and changing the systable_* APIs would have caused way too
much churn (including breaking a lot of external users).
Author: Ashwin Agrawal, with some small additions by Andres Freund
Reviewed-By: Andres Freund
Discussion: https://postgr.es/m/CALfoeiugyrXZfX7n0ORCa4L-m834dzmaE8eFdbNR6PMpetU4Ww@mail.gmail.com
Diffstat (limited to 'src/backend/commands/createas.c')
-rw-r--r-- | src/backend/commands/createas.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/backend/commands/createas.c b/src/backend/commands/createas.c index 43c2fa91242..4c1d909d380 100644 --- a/src/backend/commands/createas.c +++ b/src/backend/commands/createas.c @@ -60,7 +60,7 @@ typedef struct Relation rel; /* relation to write to */ ObjectAddress reladdr; /* address of rel, for ExecCreateTableAs */ CommandId output_cid; /* cmin to insert in output tuples */ - int ti_options; /* table_insert performance options */ + int ti_options; /* table_tuple_insert performance options */ BulkInsertState bistate; /* bulk insert state */ } DR_intorel; @@ -576,18 +576,18 @@ intorel_receive(TupleTableSlot *slot, DestReceiver *self) /* * Note that the input slot might not be of the type of the target - * relation. That's supported by table_insert(), but slightly less + * relation. That's supported by table_tuple_insert(), but slightly less * efficient than inserting with the right slot - but the alternative * would be to copy into a slot of the right type, which would not be * cheap either. This also doesn't allow accessing per-AM data (say a * tuple's xmin), but since we don't do that here... */ - table_insert(myState->rel, - slot, - myState->output_cid, - myState->ti_options, - myState->bistate); + table_tuple_insert(myState->rel, + slot, + myState->output_cid, + myState->ti_options, + myState->bistate); /* We know this is a newly created relation, so there are no indexes */ |