Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eTPld-0005g1-Hf for pgsql-general@arkaria.postgresql.org; Mon, 25 Dec 2017 10:13:57 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eTPlc-0005xV-QN for pgsql-general@arkaria.postgresql.org; Mon, 25 Dec 2017 10:13:56 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eTPlc-0005xL-Fo for pgsql-general@lists.postgresql.org; Mon, 25 Dec 2017 10:13:56 +0000 Received: from mail-wm0-x242.google.com ([2a00:1450:400c:c09::242]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1eTPlT-0006up-4x for pgsql-general@lists.postgresql.org; Mon, 25 Dec 2017 10:13:55 +0000 Received: by mail-wm0-x242.google.com with SMTP id n138so31426535wmg.2 for ; Mon, 25 Dec 2017 02:13:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=yjrU7jO0+MZLeqz0AUoAZSlAZHKPHgZx8fOKKha+1RE=; b=q/oJUhXhhmdTf5dIvq384/oJwnsFdlMJmbiIdBQ5BvCaDBuTGbqKm3wBdB2i9tpKFc Jvq0o6csgry/wWaVCqU83+yIWmE5OCJf721nM8hQdgaeqJKFX4Uws0Etw4dILWtdoNQu dORzdrCuoqznm6jCBU4rfg76fUrD9KopLi4Lbx+SSDXXCB8OjmDIqigdHyxNOKkFPnAC nTMTmRYpOfFYUPBW1oyvSrN7TiIKK+8Yx+HJrqoJqGHWBkKHiC0HiX9OGK0Z6j9Zu13A 2YEH0IVPYhf5WmaxlG1sZC7Wn3ZwiQWLAvzoDh0ANcG8lYg2yFSmj/eXbZ/7NFhCufG2 86Og== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=yjrU7jO0+MZLeqz0AUoAZSlAZHKPHgZx8fOKKha+1RE=; b=lm43wydJuTcZiaAXFExe1wlI4EWbbsAXzzr9MvihoCmin0Qt3qQ36iETTiQrP/yi+J iv6Ygqko8UtHo7TYlVplDuYNYTuFUZyzo5rER2A99VkOQLV934L46CbSF2Uu5ORBoCq/ 5TRKb+3lslSCSivSQY12PTOv78RdaqliO6uZ/PANIL9xoG1XmrXokwqRqIllSkbLWk5D Zx6cKZz8qev4iCfkb+INHGOXV5V+FeNEDy/b+CfP9y2HcXXG4L9uWC2bPDzPcy1/oQWr iNK+akeTkHiYfnm8AFMykRMVHj8pV+HHqmy2jItOLZQyD2P6Qm8i7hLXF4lbE7Th3Wqp EZiQ== X-Gm-Message-State: AKGB3mLmEhZypSt6JRxI9J09Y18G4V9nLC4PyxJS+/QoQLlkCBZIO/OT bqY7ZN30gBnNRMdigXsfGTX+kl9C X-Google-Smtp-Source: ACJfBovO2PT0mmX/ysDzq4tA9pf3WgKWKgvDz1iONR1MgOJUeVD+Dlz2ZiaPCxB5+Lpcl9vO97hIKw== X-Received: by 10.80.139.65 with SMTP id l59mr26069748edl.12.1514196823949; Mon, 25 Dec 2017 02:13:43 -0800 (PST) Received: from hollewijn.internal (84-245-13-9.dsl.cambrium.nl. [84.245.13.9]) by smtp.gmail.com with ESMTPSA id g20sm26823237edb.75.2017.12.25.02.13.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 25 Dec 2017 02:13:42 -0800 (PST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 11.2 \(3445.5.20\)) Subject: Re: Scheme conversion MySQL to PGSQL From: Alban Hertroys X-Priority: 3 (Normal) In-Reply-To: <491331d0766626e73f6028b0462629fa.squirrel@webmail.tamay-dogan.net> Date: Mon, 25 Dec 2017 11:13:40 +0100 Cc: pgsql-general@lists.postgresql.org Content-Transfer-Encoding: quoted-printable Message-Id: <40A1A9E2-75C6-4CDB-A786-402D03962CD0@gmail.com> References: <491331d0766626e73f6028b0462629fa.squirrel@webmail.tamay-dogan.net> To: Michelle Konzack X-Mailer: Apple Mail (2.3445.5.20) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk > On 24 Dec 2017, at 18:52, Michelle Konzack = wrote: > CREATE TABLE sqmf_stat ( > stat_login varchar(70) NOT NULL, > stat_post integer default '1', > stat_thread integer default '1', > PRIMARY KEY (stat_login), > UNIQUE KEY user (stat_login) > ); Just a minor observation, but a PRIMARY KEY is UNIQUE by definition. = There's no need for that UNIQUE key "user" on the same field. Alban Hertroys -- If you can't see the forest for the trees, cut the trees and you'll find there is no forest.