Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1i6cyM-0003D0-Hz for pgsql-sql@arkaria.postgresql.org; Sat, 07 Sep 2019 15:49:58 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1i6cyJ-0004Ae-Ow for pgsql-sql@arkaria.postgresql.org; Sat, 07 Sep 2019 15:49:55 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1i6cyJ-0004AX-Gx for pgsql-sql@lists.postgresql.org; Sat, 07 Sep 2019 15:49:55 +0000 Received: from mail-io1-xd43.google.com ([2607:f8b0:4864:20::d43]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1i6cyH-0003gL-U8 for pgsql-sql@lists.postgresql.org; Sat, 07 Sep 2019 15:49:55 +0000 Received: by mail-io1-xd43.google.com with SMTP id k13so4356861ioj.1 for ; Sat, 07 Sep 2019 08:49:53 -0700 (PDT) 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=+Gq5XIPV8Xs7m+qwmjNjygyTwuKHE4xuRU71HLjxM6c=; b=m4/H5E9Yhk3fQTc5Dbwn0f1DyXMRvDX3bsBqZEgrkeHSigJU1RQe50bMytuWfAmqH8 IC9fSAejpJCzrBTrKot/SLZuW0nyfcoC2VO+9iJODUOMh1kLkSX6j4tLH0h2288kBrYV waE8Y64U2e2OfdwVrF6cpl9xEYwqRpoqEg7euIVyTx8zuX3cG0tI+cupE3C2oYgOgKrP 4WG40kf6aLK4UjFV2UGTIpiWj0t6LVexlyEe9jqdixA3QxQxfa2/E9wQC5bAQwsKPxxt HFXo6TTtU03O5vcMxX0ewNLGjf0tm49vPO0/Q1kblqbJlnkV6oGq9Z6MCY87iX4UoY6W RSKw== 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=+Gq5XIPV8Xs7m+qwmjNjygyTwuKHE4xuRU71HLjxM6c=; b=uS1pnYfxrTsZMyYk3xcLmcFjkQ6aCz40BHoGUX+lNzmOW0EOMl/4B/ZHw70Vzr1lVi 65GkcNPao6b9YoyXdgFr6W78zxq7o32HMR69/6TnHaDvH/H6YjtVCgugVC39xNU3rrdJ K7gUs2i6aocABRt3q3IycWpUWSxpUdK76FEPGOy1RKf0SB8UGaNPUtOq8JEVsQaFm2NH JZt/dZJn9g3TEmmlBIdgcGlqnSTrtoLJ3+OgR7jY85cDIc/AckFi+BabTaVO9Wut5XxT fWMhqtQX/mCgvrhWcV4DijNC+Y4Mnn1LNADO/n/7CVaASu+pp1wQRXYB+QRWKMBYUQAh MkbQ== X-Gm-Message-State: APjAAAWN0VUJI+055fRogadAzWee0OVjb0punzdaD1dFteeZnkV8isrQ HYLvk5rMoZKFP6c5MsuZU1qKayjv8kM= X-Google-Smtp-Source: APXvYqye/qU4j45SbzUeT4Ts3vxXxXDZn3j8LZTHiCo9kiTjfLsomFqgjOFVsyjEpIdj7EMqI0VA2A== X-Received: by 2002:a5e:c102:: with SMTP id v2mr8843566iol.55.1567871391850; Sat, 07 Sep 2019 08:49:51 -0700 (PDT) Received: from [100.83.45.17] (160.sub-174-221-133.myvzw.com. [174.221.133.160]) by smtp.gmail.com with ESMTPSA id e139sm13254885iof.60.2019.09.07.08.49.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 07 Sep 2019 08:49:51 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (1.0) Subject: Re: How do I enabled Windows 10 to be able to run PSQL etc From: Rob Sargent X-Mailer: iPhone Mail (16G77) In-Reply-To: <1282323688.2470443.1567868674196@mail.yahoo.com> Date: Sat, 7 Sep 2019 08:49:48 -0700 Cc: pgsql-sql@lists.postgresql.org Content-Transfer-Encoding: quoted-printable Message-Id: <2B0FF25B-F26A-4FA5-9CD6-D58AF5A534EB@gmail.com> References: <207445330.2444743.1567859173939@mail.yahoo.com> <27D5F961-0A53-4819-9558-B2C685D0AB30@gmail.com> <1282323688.2470443.1567868674196@mail.yahoo.com> To: Karen Goh List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk > On Sep 7, 2019, at 8:04 AM, Karen Goh wrote: >=20 > Hi Rob, >=20 > At pgAdmin 4, it shows I am in postgres/postgres@PostgreSQL11 >=20 > I have created a table there using CREATE public.TABLE follows by name bla= h.. >=20 > When I executed the SQL, it said successful but it didn't appear together i= n the Schema - membership. >=20 > So, I tried to use membership.TableName but it doesn't allow so I thought m= aybe this is the way Postgesql work - differ from MYSQL. >=20 > So, now, How do I add in the table that I want? >=20 > So, the thing is that it is already showing me I am in postgres, how do I a= lter it then ? Alter it to what ? >=20 > On Saturday, September 7, 2019, 10:07:56 PM GMT+8, Rob Sargent wrote: >=20 >=20 >=20 >=20 > > On Sep 7, 2019, at 5:26 AM, Karen Goh wrote: > > > > Hello experts, > > > > Ever since I found out I have a different versions of Postgresql residin= g in my PC, I have deleted the old version - 10 and 7 altogether and install= ed version 11. > > > > So, all look good except that I can't use PSQL at all. > > > > Then, I found out that there is a security tied to using PSQL in Windows= 10. However, I tried to alter the setting for DESKTOP user to Full-Control I= can't find a way to do it. Neither can I find anything from the internet. > > > > Please advise how do I alter the setting so that I can use PSQL freely.=20= > > > > I had tried to use runpsql.batch after reading a Stackoverflow user advi= ce. > > > > But, when I tried to do some psql comments, it doesn't work. > > > > What is that comment you might ask - which is my next problem - this com= ment is to allow me to merge a table which I have created in PGAdmin 4 into a= schema - membership which has 3 tables there already. > > > > The thing is that I found that the table which I have created, it is not= able to appear under the schema - memberships. But, when I used runpsql.bat= ch, and use /l , it will show up as a table but under postgres. > > > > Now, in my PGAdmin 4, I did not create a user name either, it is also us= ing postgres as user name so why is the table not appear as a table even aft= er I refreshed. > > > > So, I hope someone can tell me the solutions to the above problem. > > > > Thanks & regards, > > Karen >=20 > > > > > Without a user everything will be owned by Postgres account but that=E2=80= =99s ok. > By =E2=80=98under postgres=E2=80=99 do you mean owned by Postgres in the p= ublic schema or in the postgres database. If the latter then your pgadmin co= nnection settings need the name of the database to use. Your table needs to b= e fully qualified by adding the schema name: > create table schema.table > You can use the alter table statement to reset the schema for the existing= table or drop table/create table if that=E2=80=99s easier for you. >=20 Sorry Karen I=E2=80=99m not at my desk or I could give you url. You=E2=80=99= ll have to google Postgres alter table command. I use neither windows nor pg= admin >=20