Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jPSHR-0002cf-5R for pgsql-general@arkaria.postgresql.org; Fri, 17 Apr 2020 14:47:45 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jPSHP-0004hu-WD for pgsql-general@arkaria.postgresql.org; Fri, 17 Apr 2020 14:47:44 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jPSHP-0004eZ-Cq for pgsql-general@lists.postgresql.org; Fri, 17 Apr 2020 14:47:43 +0000 Received: from mail.wordtothewise.com ([104.225.223.158]) by magus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jPSHM-0002r3-G7 for pgsql-general@lists.postgresql.org; Fri, 17 Apr 2020 14:47:43 +0000 Received: from [192.168.0.206] (unknown [37.228.253.89]) by mail.wordtothewise.com (Postfix) with ESMTPSA id E87539F1F7 for ; Fri, 17 Apr 2020 07:47:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wordtothewise.com; s=aardvark; t=1587134857; bh=1fr6+5p/8I1gBxSKqM6cqNyMEUDMA+aEfzF6+sx11RA=; h=Subject:To:References:From:Date:In-Reply-To:From; b=hF9wDjnFwzM2KdteVaLPWQV0NGmXB0pZhJSQvKeXAcP3wxM+w38Hfqo7HmXjz1OPL 7A+BQ6dNO5R1ZWf+kI9a9HBxrYSK5pjW1spYR8JUI8wtOQls13K28uW9zwsjf/h9rQ aCxegg31YxbtSQQswaBuzAhikroG15xHuSIu2yLI= Subject: Re: easy way to acquire height / width from images (PNG, JPEG) stored as bytea? To: pgsql-general@lists.postgresql.org References: <03a79221-6e00-4d8e-c6bc-c01cadb352d9@matrix.gatewaynet.com> From: Steve Atkins Message-ID: Date: Fri, 17 Apr 2020 15:47:34 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 MIME-Version: 1.0 In-Reply-To: <03a79221-6e00-4d8e-c6bc-c01cadb352d9@matrix.gatewaynet.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 17/04/2020 13:37, Achilleas Mantzios wrote: > Hello Dear List, > > we have a table holding email attachments as bytea, and we would like > to filter out images of small dimensions, which are not of any value > to our logic. > > I took a look at pg_image extension, tested it, and it proved > problematic, it killed my 200+ days uptime FreeBSD box :( . I dropped > the extension and uninstalled this as soon as fsck finally finished. If running an extension crashed your server you should look at how / why, especially if it corrupted your filesystem. That shouldn't happen on a correctly configured system, so the underlying issue might cause you other problems. Crashing postgresql, sure, but not anything that impacts the rest of the server. Cheers,   Steve