Skip to content

Commit fa5e14f

Browse files
committed
fix links to Migrate from Postgres/MySQL
1 parent 37fd266 commit fa5e14f

File tree

55 files changed

+102
-102
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+102
-102
lines changed

src/current/v23.1/build-a-java-app-with-cockroachdb-hibernate.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,9 @@ APP: getAccountBalance(2) --> 350.00
130130

131131
If you are trying to get a large data set into CockroachDB all at once (a bulk import), avoid writing client-side code altogether and use the [`IMPORT`]({% link {{ page.version.version }}/import.md %}) statement instead. It is much faster and more efficient than making a series of [`INSERT`s]({% link {{ page.version.version }}/insert.md %}) and [`UPDATE`s]({% link {{ page.version.version }}/update.md %}). It bypasses the [SQL layer]({% link {{ page.version.version }}/architecture/sql-layer.md %}) altogether and writes directly to the [storage layer](architecture/storage-layer.html) of the database.
132132

133-
For more information about importing data from PostgreSQL, see [Migrate from PostgreSQL]({% link {{ page.version.version }}/migrate-from-postgres.md %}).
133+
For more information about importing data from PostgreSQL, see [Migrate from PostgreSQL]({% link molt/migrate-to-cockroachdb.md %}).
134134

135-
For more information about importing data from MySQL, see [Migrate from MySQL]({% link {{ page.version.version }}/migrate-from-mysql.md %}).
135+
For more information about importing data from MySQL, see [Migrate from MySQL]({% link molt/migrate-to-cockroachdb.md %}?filters=mysql).
136136

137137
### Use `reWriteBatchedInserts` for increased speed
138138

src/current/v23.1/build-a-java-app-with-cockroachdb.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,9 +269,9 @@ props.setProperty("options", "-c sql_safe_updates=true -c statement_timeout=30")
269269
270270
If you are trying to get a large data set into CockroachDB all at once (a bulk import), avoid writing client-side code altogether and use the [`IMPORT`]({% link {{ page.version.version }}/import.md %}) statement instead. It is much faster and more efficient than making a series of [`INSERT`s]({% link {{ page.version.version }}/insert.md %}) and [`UPDATE`s]({% link {{ page.version.version }}/update.md %}). It bypasses the [SQL layer]({% link {{ page.version.version }}/architecture/sql-layer.md %}) altogether and writes directly to the [storage layer](architecture/storage-layer.html) of the database.
271271
272-
For more information about importing data from PostgreSQL, see [Migrate from PostgreSQL]({% link {{ page.version.version }}/migrate-from-postgres.md %}).
272+
For more information about importing data from PostgreSQL, see [Migrate from PostgreSQL]({% link molt/migrate-to-cockroachdb.md %}).
273273
274-
For more information about importing data from MySQL, see [Migrate from MySQL]({% link {{ page.version.version }}/migrate-from-mysql.md %}).
274+
For more information about importing data from MySQL, see [Migrate from MySQL]({% link molt/migrate-to-cockroachdb.md %}?filters=mysql).
275275
276276
### Use `reWriteBatchedInserts` for increased speed
277277

src/current/v23.1/build-a-python-app-with-cockroachdb-sqlalchemy.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,9 +204,9 @@ Instead, we recommend breaking your transaction into smaller units of work (or "
204204
205205
If you are trying to get a large data set into CockroachDB all at once (a bulk import), avoid writing client-side code that uses an ORM and use the [`IMPORT`]({% link {{ page.version.version }}/import.md %}) statement instead. It is much faster and more efficient than making a series of [`INSERT`s]({% link {{ page.version.version }}/insert.md %}) and [`UPDATE`s]({% link {{ page.version.version }}/update.md %}) such as are generated by calls to [`session.bulk_save_objects()`](https://docs.sqlalchemy.org/orm/session_api.html?highlight=bulk_save_object#sqlalchemy.orm.session.Session.bulk_save_objects).
206206
207-
For more information about importing data from PostgreSQL, see [Migrate from PostgreSQL]({% link {{ page.version.version }}/migrate-from-postgres.md %}).
207+
For more information about importing data from PostgreSQL, see [Migrate from PostgreSQL]({% link molt/migrate-to-cockroachdb.md %}).
208208
209-
For more information about importing data from MySQL, see [Migrate from MySQL]({% link {{ page.version.version }}/migrate-from-mysql.md %}).
209+
For more information about importing data from MySQL, see [Migrate from MySQL]({% link molt/migrate-to-cockroachdb.md %}?filters=mysql).
210210
211211
### Prefer the query builder
212212

src/current/v23.1/cockroach-import.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ $ cockroach import --help
3737

3838
## Supported Formats
3939

40-
- [`pgdump`]({% link {{ page.version.version }}/migrate-from-postgres.md %})
41-
- [`mysqldump`]({% link {{ page.version.version }}/migrate-from-mysql.md %})
40+
- [`pgdump`]({% link molt/migrate-to-cockroachdb.md %})
41+
- [`mysqldump`]({% link molt/migrate-to-cockroachdb.md %}?filters=mysql)
4242

4343
## Flags
4444

@@ -110,5 +110,5 @@ successfully imported table test_table from pgdump file /Users/maxroach/Desktop/
110110
- [`cockroach` Commands Overview]({% link {{ page.version.version }}/cockroach-commands.md %})
111111
- [`IMPORT`]({% link {{ page.version.version }}/import.md %})
112112
- [`IMPORT INTO`]({% link {{ page.version.version }}/import-into.md %})
113-
- [Migrate from PostgreSQL]({% link {{ page.version.version }}/migrate-from-postgres.md %})
114-
- [Migrate from MySQL]({% link {{ page.version.version }}/migrate-from-mysql.md %})
113+
- [Migrate from PostgreSQL]({% link molt/migrate-to-cockroachdb.md %})
114+
- [Migrate from MySQL]({% link molt/migrate-to-cockroachdb.md %}?filters=mysql)

src/current/v23.1/copy.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,5 +363,5 @@ You can copy CSV data into CockroachDB using the following methods:
363363
- [`EXPORT`]({% link {{ page.version.version }}/export.md %})
364364
- [Install a Driver or ORM Framework]({% link {{ page.version.version }}/install-client-drivers.md %})
365365
{% comment %}
366-
- [Migrate from PostgreSQL]({% link {{ page.version.version }}/migrate-from-postgres.md %})
366+
- [Migrate from PostgreSQL]({% link molt/migrate-to-cockroachdb.md %})
367367
{% endcomment %}

src/current/v23.1/frequently-asked-questions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ Note, however, that the protocol used doesn't significantly impact how easy it i
149149

150150
### Can a PostgreSQL or MySQL application be migrated to CockroachDB?
151151

152-
Yes. Most users should be able to follow the instructions in [Migrate from PostgreSQL]({% link {{ page.version.version }}/migrate-from-postgres.md %}) or [Migrate from MySQL]({% link {{ page.version.version }}/migrate-from-mysql.md %}). Due to differences in available features and syntax, some features supported by these databases may require manual effort to port to CockroachDB. Check those pages for details.
152+
Yes. Most users should be able to follow the instructions in [Migrate from PostgreSQL]({% link molt/migrate-to-cockroachdb.md %}) or [Migrate from MySQL]({% link molt/migrate-to-cockroachdb.md %}?filters=mysql). Due to differences in available features and syntax, some features supported by these databases may require manual effort to port to CockroachDB. Check those pages for details.
153153

154154
We also fully support [importing your data via CSV]({% link {{ page.version.version }}/migrate-from-csv.md %}).
155155

src/current/v23.1/import-performance-best-practices.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ If you cannot both split and sort your dataset, the performance of either split
164164
- [`IMPORT INTO`]({% link {{ page.version.version }}/import-into.md %})
165165
- [Migration Overview]({% link molt/migration-overview.md %})
166166
- [Migrate from Oracle]({% link {{ page.version.version }}/migrate-from-oracle.md %})
167-
- [Migrate from PostgreSQL]({% link {{ page.version.version }}/migrate-from-postgres.md %})
168-
- [Migrate from MySQL]({% link {{ page.version.version }}/migrate-from-mysql.md %})
167+
- [Migrate from PostgreSQL]({% link molt/migrate-to-cockroachdb.md %})
168+
- [Migrate from MySQL]({% link molt/migrate-to-cockroachdb.md %}?filters=mysql)
169169
- [Migrate from CSV]({% link {{ page.version.version }}/migrate-from-csv.md %})
170170
- [Migrate from Avro]({% link {{ page.version.version }}/migrate-from-avro.md %})

src/current/v23.1/import.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ IMPORT PGDUMP 's3://{BUCKET NAME}/{customers.sql}?AWS_ACCESS_KEY_ID={ACCESS KEY}
184184
WITH ignore_unsupported_statements;
185185
~~~
186186

187-
For this command to succeed, you need to have created the dump file with specific flags to `pg_dump`, and use the `WITH ignore_unsupported_statements` clause. For more information, see [Migrate from PostgreSQL]({% link {{ page.version.version }}/migrate-from-postgres.md %}).
187+
For this command to succeed, you need to have created the dump file with specific flags to `pg_dump`, and use the `WITH ignore_unsupported_statements` clause. For more information, see [Migrate from PostgreSQL]({% link molt/migrate-to-cockroachdb.md %}).
188188

189189
### Import a table from a PostgreSQL database dump
190190

@@ -197,7 +197,7 @@ IMPORT TABLE employees
197197

198198
If the table schema specifies foreign keys into tables that do not exist yet, the `WITH skip_foreign_keys` option may be needed. For more information, see the list of [import options](#import-options).
199199

200-
For this command to succeed, you need to have created the dump file with specific flags to `pg_dump`. For more information, see [Migrate from PostgreSQL]({% link {{ page.version.version }}/migrate-from-postgres.md %}).
200+
For this command to succeed, you need to have created the dump file with specific flags to `pg_dump`. For more information, see [Migrate from PostgreSQL]({% link molt/migrate-to-cockroachdb.md %}).
201201

202202
### Import a MySQL database dump
203203

@@ -206,7 +206,7 @@ For this command to succeed, you need to have created the dump file with specifi
206206
IMPORT MYSQLDUMP 's3://{BUCKET NAME}/{employees-full.sql}?AWS_ACCESS_KEY_ID={ACCESS KEY}&AWS_SECRET_ACCESS_KEY={SECRET ACCESS KEY}';
207207
~~~
208208

209-
For more detailed information about importing data from MySQL, see [Migrate from MySQL]({% link {{ page.version.version }}/migrate-from-mysql.md %}).
209+
For more detailed information about importing data from MySQL, see [Migrate from MySQL]({% link molt/migrate-to-cockroachdb.md %}?filters=mysql).
210210

211211
### Import a table from a MySQL database dump
212212

@@ -218,7 +218,7 @@ IMPORT TABLE employees
218218

219219
If the table schema specifies foreign keys into tables that do not exist yet, the `WITH skip_foreign_keys` option may be needed. For more information, see the list of [import options](#import-options).
220220

221-
For more detailed information about importing data from MySQL, see [Migrate from MySQL]({% link {{ page.version.version }}/migrate-from-mysql.md %}).
221+
For more detailed information about importing data from MySQL, see [Migrate from MySQL]({% link molt/migrate-to-cockroachdb.md %}?filters=mysql).
222222

223223
### Import a limited number of rows
224224

src/current/v23.1/known-limitations.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ CockroachDB supports efficiently storing and querying [spatial data]({% link {{
454454

455455
- CockroachDB does not support using [schema name prefixes]({% link {{ page.version.version }}/sql-name-resolution.md %}#how-name-resolution-works) to refer to [data types]({% link {{ page.version.version }}/data-types.md %}) with type modifiers (e.g., `public.geometry(linestring, 4326)`). Instead, use fully-unqualified names to refer to data types with type modifiers (e.g., `geometry(linestring,4326)`).
456456

457-
Note that, in [`IMPORT PGDUMP`]({% link {{ page.version.version }}/migrate-from-postgres.md %}) output, [`GEOMETRY` and `GEOGRAPHY`]({% link {{ page.version.version }}/export-spatial-data.md %}) data type names are prefixed by `public.`. If the type has a type modifier, you must remove the `public.` from the type name in order for the statements to work in CockroachDB.
457+
Note that, in [`IMPORT PGDUMP`]({% link molt/migrate-to-cockroachdb.md %}) output, [`GEOMETRY` and `GEOGRAPHY`]({% link {{ page.version.version }}/export-spatial-data.md %}) data type names are prefixed by `public.`. If the type has a type modifier, you must remove the `public.` from the type name in order for the statements to work in CockroachDB.
458458

459459
[Tracking GitHub Issue](https://github.com/cockroachdb/cockroach/issues/56492)
460460

src/current/v23.1/migrate-from-oracle.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -388,8 +388,8 @@ You will have to refactor Oracle SQL and functions that do not comply with [ANSI
388388
- [`IMPORT`]({% link {{ page.version.version }}/import.md %})
389389
- [Import Performance Best Practices]({% link {{ page.version.version }}/import-performance-best-practices.md %})
390390
- [Migrate from CSV]({% link {{ page.version.version }}/migrate-from-csv.md %})
391-
- [Migrate from MySQL]({% link {{ page.version.version }}/migrate-from-mysql.md %})
392-
- [Migrate from PostgreSQL]({% link {{ page.version.version }}/migrate-from-postgres.md %})
391+
- [Migrate from MySQL]({% link molt/migrate-to-cockroachdb.md %}?filters=mysql)
392+
- [Migrate from PostgreSQL]({% link molt/migrate-to-cockroachdb.md %})
393393
- [Back Up and Restore Data]({% link {{ page.version.version }}/take-full-and-incremental-backups.md %})
394394
- [Use the Built-in SQL Client]({% link {{ page.version.version }}/cockroach-sql.md %})
395395
- [`cockroach` Commands Overview]({% link {{ page.version.version }}/cockroach-commands.md %})

0 commit comments

Comments
 (0)