You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello.
We have a PostgreSQL database dump generated as follows:
---- PostgreSQL database dump---- Dumped from database version 15.6-- Dumped by pg_dump version 15.6SET statement_timeout =0;
SET lock_timeout =0;
SET idle_in_transaction_session_timeout =0;
SET client_encoding ='UTF8';
SET standard_conforming_strings =on;
SELECTpg_catalog.set_config('search_path', '', false);
SET check_function_bodies = false;
SET xmloption = content;
SET client_min_messages = warning;
SET row_security = off;
SET default_tablespace ='';
SET default_table_access_method = heap;
with a list of CREATE TABLE statements, some of which are for partitioned tables:
CREATETABLEpublic.samples (
id bigintNOT NULL,
machine_id bigint,
device_id character varying NOT NULL,
sampled_at timestamp(6) without time zoneNOT NULL,
data jsonb,
created_at timestamp(6) without time zoneNOT NULL,
updated_at timestamp(6) without time zoneNOT NULL
)
PARTITION BY LIST (device_id);
This results in the following SQL code, which creates a syntax error due to the additional backticks in the last two lines:
CREATETABLEpublic.samples (
`id`bigintNOT NULL,
`machine_id`bigint,
`device_id` longtext NOT NULL,
`sampled_at`timestamp(6) NOT NULL,
`data` json,
`created_at`timestamp(6) NOT NULL,
`updated_at`timestamp(6) NOT NULL``)
`PARTITION` BY LIST (device_id);
Even fixing the syntax error could not work, since MySQL wants LIST partitions defined at that point (otherwise you will get the error For LIST partitions each partition must be defined when loading the SQL file).
Hello.
We have a PostgreSQL database dump generated as follows:
with a list of
CREATE TABLE
statements, some of which are for partitioned tables:This results in the following SQL code, which creates a syntax error due to the additional backticks in the last two lines:
Even fixing the syntax error could not work, since MySQL wants LIST partitions defined at that point (otherwise you will get the error
For LIST partitions each partition must be defined
when loading the SQL file).From MySQL docs at https://dev.mysql.com/doc/mysql-partitioning-excerpt/8.0/en/partitioning-list.html:
The text was updated successfully, but these errors were encountered: