Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id D08F064FC24 for ; Wed, 24 Sep 2008 16:33:11 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 91371-03 for ; Wed, 24 Sep 2008 16:33:07 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by postgresql.org (Postfix) with ESMTP id 5EFE364FC1E for ; Wed, 24 Sep 2008 16:33:06 -0300 (ADT) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Kia6d-0005pv-G1 for pgsql-admin@postgresql.org; Wed, 24 Sep 2008 19:32:59 +0000 Received: from 77.70.61.39 ([77.70.61.39]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 24 Sep 2008 19:32:59 +0000 Received: from milen by 77.70.61.39 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 24 Sep 2008 19:32:59 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-admin@postgresql.org From: "Milen A. Radev" Subject: Re: Hex representation Date: Wed, 24 Sep 2008 22:32:46 +0300 Lines: 18 Message-ID: References: <337D9AE2-2BEF-48E3-8DF4-E7F0CA560A1B@indiana.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 77.70.61.39 User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) In-Reply-To: <337D9AE2-2BEF-48E3-8DF4-E7F0CA560A1B@indiana.edu> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=2.599 tagged_above=0 required=5 tests=RCVD_NUMERIC_HELO=2.599 X-Spam-Level: ** X-Archive-Number: 200809/290 X-Sequence-Number: 30383 Carol Walter написа: > Hello, > > Does anyone know what the format of hex characters for postgres are? > I'm trying to create files that contain a 0x55. It looks to me like it > should require a delimiter of some sort between the characters. I don't > know how postgres would know that the string was a hex representation > and not just a character zero, followed by a character x, followed by a > character 5, followed by a character 5. http://www.postgresql.org/docs/current/static/sql-syntax-lexical.html#SQL-SYNTAX-IDENTIFIERS Look for "Also supported are \digits,..." in section "4.1.2.1. String Constants". -- Milen A. Radev