X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 2C15E52BB7; Sat, 20 Aug 2005 14:48:00 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 73681-08; Sat, 20 Aug 2005 17:47:57 +0000 (GMT) Received: from tigger.fuhr.org (tigger.fuhr.org [63.214.45.158]) by svr1.postgresql.org (Postfix) with ESMTP id 4B29252A74; Sat, 20 Aug 2005 14:47:56 -0300 (ADT) Received: from winnie.fuhr.org (winnie.fuhr.org [10.1.0.1]) by tigger.fuhr.org (8.13.3/8.13.3) with ESMTP id j7KHlruI010983 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sat, 20 Aug 2005 11:47:56 -0600 (MDT) (envelope-from mfuhr@winnie.fuhr.org) Received: from winnie.fuhr.org (localhost [127.0.0.1]) by winnie.fuhr.org (8.13.3/8.13.3) with ESMTP id j7KHlrqV068593; Sat, 20 Aug 2005 11:47:53 -0600 (MDT) (envelope-from mfuhr@winnie.fuhr.org) Received: (from mfuhr@localhost) by winnie.fuhr.org (8.13.3/8.13.3/Submit) id j7KHlrqW068592; Sat, 20 Aug 2005 11:47:53 -0600 (MDT) (envelope-from mfuhr) Date: Sat, 20 Aug 2005 11:47:53 -0600 From: Michael Fuhr To: Postgres Admin Cc: PostgreSQL - Admin , PostgreSQL - PHP , PostgreSQL - SQL Subject: Re: Data insert Message-ID: <20050820174753.GA68467@winnie.fuhr.org> References: <430765C3.9090309@productivitymedia.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <430765C3.9090309@productivitymedia.com> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.005 required=5 tests=[AWL=0.005] X-Spam-Level: X-Archive-Number: 200508/251 X-Sequence-Number: 18570 On Sat, Aug 20, 2005 at 01:17:55PM -0400, Postgres Admin wrote: > I don't have any idea how to insert the type of data into PostgreSQL. > Basically, it's encrypted data in which I would like that keep raw format. If the data is binary then you could store it in a BYTEA column. How to get such data into the database depends on the client interface -- you could escape the data appropriately and embed it into an INSERT statement, or you could use a parameterized query that either transfers binary data using the PostgreSQL protocol (available in 7.4 and later) or automatically escapes the data. See your interface documentation for more information. -- Michael Fuhr