Note that there are some explanatory texts on larger screens.

plurals
  1. POMigration from MYSQL to PostgreSQL
    primarykey
    data
    text
    <p>I just want to migrate my application from MYSQL to PostgreSQL. I am stuck at one point, </p> <pre><code>CREATE TABLE some_table ( sequenceNumOnTarget BIGINT NOT NULL, streamStartTime BIGINT, intervalStartTime BIGINT NOT NULL, intervalNumber SMALLINT, intervalDuration INTEGER, lastReport TINYINT, macAddr VARCHAR(20) NOT NULL, directoryNumber VARCHAR(30), subnetMask VARCHAR(20), subnetAddress VARCHAR(20), ipAddress VARCHAR(20), icpName VARCHAR(20), udpPort INTEGER NOT NULL, tcpPort INTEGER, endpointContext SMALLINT, endpointType SMALLINT, farEndIpAddress VARCHAR(20), farEndMacAddr VARCHAR(20), farEndDirectoryNumber VARCHAR(30), farEndUdpPort INTEGER, farEndTcpPort INTEGER, farEndType SMALLINT, farEndSubnet VARCHAR(20), farEndIcpName VARCHAR(20), codec SMALLINT, packetsReceived BIGINT, DELAY INTEGER, jitterRfc1889 INTEGER, averageJitter INTEGER, jitterHist0 INTEGER, jitterHist1 INTEGER, jitterHist2 INTEGER, jitterHist3 INTEGER, jitterHist4 INTEGER, jitterHist5 INTEGER, jitterHist6 INTEGER, jitterHist7 INTEGER, jitterBufferOverflow BIGINT, jitterBufferUnderflow BIGINT, jitterBufferAverageDepth INTEGER, jitterBufferMaxDepth INTEGER, packetLoss BIGINT, packetLossMaxBurst BIGINT, packetLossHist0 INTEGER, packetLossHist1 INTEGER, packetLossHist2 INTEGER, packetLossHist3 INTEGER, packetLossHist4 INTEGER, packetLossHist5 INTEGER, packetLossHist6 INTEGER, packetLossHist7 INTEGER, packetsOutOfOrder BIGINT, maxJitter BIGINT, networkMos INTEGER, userMos INTEGER, pollId BIGINT, instance VARCHAR(100), ttime BIGINT NOT NULL, PRIMARY KEY (sequenceNumOnTarget,macAddr,udpPort), INDEX vq_subnet(subnetAddress), INDEX vq_ttime(ttime), INDEX vq_pollid(pollId), INDEX vq_sequence(sequenceNumOnTarget), INDEX vq_icp(icpName) ); </code></pre> <p>This is my table definition in MySQL and now I want to convert it to PostgreSQL.</p> <p>But can't find a DDL statement suitable to 'create table and indexing both with one single query' in PostgreSQL.</p> <p>Can anyone help..</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload