@@ -4142,21 +4142,21 @@ ALTER INDEX measurement_city_id_logdate_key
4142
4142
<orderedlist spacing="compact">
4143
4143
<listitem>
4144
4144
<para>
4145
- Create the <quote>master </quote> table, from which all of the
4145
+ Create the <quote>root </quote> table, from which all of the
4146
4146
<quote>child</quote> tables will inherit. This table will contain no data. Do not
4147
4147
define any check constraints on this table, unless you intend them
4148
4148
to be applied equally to all child tables. There is no point in
4149
4149
defining any indexes or unique constraints on it, either. For our
4150
- example, the master table is the <structname>measurement</structname>
4150
+ example, the root table is the <structname>measurement</structname>
4151
4151
table as originally defined.
4152
4152
</para>
4153
4153
</listitem>
4154
4154
4155
4155
<listitem>
4156
4156
<para>
4157
4157
Create several <quote>child</quote> tables that each inherit from
4158
- the master table. Normally, these tables will not add any columns
4159
- to the set inherited from the master . Just as with declarative
4158
+ the root table. Normally, these tables will not add any columns
4159
+ to the set inherited from the root . Just as with declarative
4160
4160
partitioning, these tables are in every way normal
4161
4161
<productname>PostgreSQL</productname> tables (or foreign tables).
4162
4162
</para>
@@ -4244,7 +4244,7 @@ CREATE INDEX measurement_y2008m01_logdate ON measurement_y2008m01 (logdate);
4244
4244
We want our application to be able to say <literal>INSERT INTO
4245
4245
measurement ...</literal> and have the data be redirected into the
4246
4246
appropriate child table. We can arrange that by attaching
4247
- a suitable trigger function to the master table.
4247
+ a suitable trigger function to the root table.
4248
4248
If data will be added only to the latest child, we can
4249
4249
use a very simple trigger function:
4250
4250
@@ -4326,7 +4326,7 @@ LANGUAGE plpgsql;
4326
4326
<para>
4327
4327
A different approach to redirecting inserts into the appropriate
4328
4328
child table is to set up rules, instead of a trigger, on the
4329
- master table. For example:
4329
+ root table. For example:
4330
4330
4331
4331
<programlisting>
4332
4332
CREATE RULE measurement_insert_y2006m02 AS
@@ -4351,15 +4351,15 @@ DO INSTEAD
4351
4351
<para>
4352
4352
Be aware that <command>COPY</command> ignores rules. If you want to
4353
4353
use <command>COPY</command> to insert data, you'll need to copy into the
4354
- correct child table rather than directly into the master . <command>COPY</command>
4354
+ correct child table rather than directly into the root . <command>COPY</command>
4355
4355
does fire triggers, so you can use it normally if you use the trigger
4356
4356
approach.
4357
4357
</para>
4358
4358
4359
4359
<para>
4360
4360
Another disadvantage of the rule approach is that there is no simple
4361
4361
way to force an error if the set of rules doesn't cover the insertion
4362
- date; the data will silently go into the master table instead.
4362
+ date; the data will silently go into the root table instead.
4363
4363
</para>
4364
4364
</listitem>
4365
4365
@@ -4473,7 +4473,7 @@ ALTER TABLE measurement_y2008m02 INHERIT measurement;
4473
4473
<programlisting>
4474
4474
ANALYZE measurement;
4475
4475
</programlisting>
4476
- will only process the master table.
4476
+ will only process the root table.
4477
4477
</para>
4478
4478
</listitem>
4479
4479
0 commit comments