Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eeLK4-0002yG-Ks for pgsql-general@arkaria.postgresql.org; Wed, 24 Jan 2018 13:42:40 +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 1eeLK4-0001Ip-7D for pgsql-general@arkaria.postgresql.org; Wed, 24 Jan 2018 13:42:40 +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 1eeLK3-0001If-Jo for pgsql-general@lists.postgresql.org; Wed, 24 Jan 2018 13:42:40 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eeLJw-000872-A7 for pgsql-general@postgresql.org; Wed, 24 Jan 2018 13:42:39 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 565C1223A5; Wed, 24 Jan 2018 08:42:30 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute6.internal (MEProxy); Wed, 24 Jan 2018 08:42:30 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; bh=Qg56+ZGIzgdbt2JL5OPQKm7Pr3ZS5 7Dj89p+tRgELaE=; b=kFK8tdT7/JeEQf6NhcCsqZ/TdnBQN1iVqIpyt4Tois8pT gpTe0pKS5Zs3egl2I+E9eyGLU3b2cvpI5lj7iCeo5ryX36+f0VicoPAePHTt9WZ1 MVzc6B881kLPF93H5qvQnFTx74gWagznQLoaG3mfq0hxWqXHMnSBVxzy2QZzxHXr 2FijZG+VIqsHOKY45Huc4DidRRydJU0qk5UhJ0+sSkbG7m4IJlTkAShmKjGI4q3B OP5Oy2RfJDP9bdrc83kFMoYiiP+2Avu/2mFfW8QThFu8cmQ+oGqiG44hajZSlF6q JbTGNah62e6tBJs29WjXDIhzJ6FVrn+2Ltu1JTIvQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=Qg56+Z GIzgdbt2JL5OPQKm7Pr3ZS57Dj89p+tRgELaE=; b=cLxMkDTyw3vPoAMOK1k23Q IofJnrdbFFEyAlI5gAY25V3HMrM4FrniNkhLTVoxQbYH+YFi8ICZ6n+VTvjd/AZx hobSG30cQjtRZDanVva2fxs+3k14Y54sKDCC2JsNXYHaW191nIhVOv3+Jxp9rwej 9gaL+OHsAQ/fNUtq7o93MjeehTNWELLvcvLexpHp0lENduIrQo2swoi66rw4upRv tv2yOKI+NHilesKaLwGg4uvFekxa3ZFOFGMDkzx6Kx+y36B1I/wGUnYLWg6pZK9o mcqvGoky384Lw2JO1MmnU3FIatw32m/ftxESGdD98nBwi1kWc2qDG8NEtJ5n8+xw == X-ME-Sender: Received: from ranger.suse (unknown [67.40.177.89]) by mail.messagingengine.com (Postfix) with ESMTPA id CB09B7E1A2; Wed, 24 Jan 2018 08:42:29 -0500 (EST) Subject: Re: PGSQL 10, many Random named DB To: Durumdara , Postgres General References: From: Adrian Klaver Message-ID: <5ccfc64e-6b26-341b-cb76-544b17a676bc@aklaver.com> Date: Wed, 24 Jan 2018 05:42:29 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 01/24/2018 02:52 AM, Durumdara wrote: > Hello! > > Somewhere the system administrator (who don't know the PG really) > installed a PGSQL server (10.x) with a database. > He couldn't manage the server well. > > Yesterday my colleague saw 21 databases in this server with random names. > He checked it with built in PGAdmin IV. > Today we checked it again, and we saw 33 databases. > > The first name is "ahucli" for example - like an aztec king... :-). > > The server OS is Windows, the PGSQL is 10.x. > > What can cause this strange thing? > > 1.) PGAdmin IV bug? I doubt it but easy enough to double check. Use the psql command line tool and do \l. Or find the $PGDATA directory(https://www.postgresql.org/docs/10/static/storage-file-layout.html) and see how many sub-directories there are base/ where each sub-directory is a database. > 2.) Their server is hacked/cracked from outside? Is this server accessible from the outside? > 3.) A wrong configured tool, or an automation? My bet. Per Vincenzo's post check the logs. > 4.) "Alien invasion", etc. > > Did you see same thing anywhere? > > Thank you for any advice in this theme! > > Best regards >    dd > -- Adrian Klaver adrian.klaver@aklaver.com