Received: from localhost (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 67F2E632207 for ; Mon, 12 Jan 2009 16:09:33 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 60887-07 for ; Mon, 12 Jan 2009 16:09:26 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.231]) by mail.postgresql.org (Postfix) with ESMTP id 5B7EF6321C5 for ; Mon, 12 Jan 2009 16:09:25 -0400 (AST) Received: by rv-out-0506.google.com with SMTP id b25so12328567rvf.43 for ; Mon, 12 Jan 2009 12:09:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=5nEW3X56/cxb/zu0FOV/FoLmJ81gNkDNZ2C8wd7bG3M=; b=QJwWQb9hViFtXDR75pQYT+DnCLGJ5TG8CsxNI7Om7pAblrPKvBG/+q51zR4Phlzh7v lns7TH5jfIcvKrJL40yAokqzKEpJQ+jsyowC/PYc53dNOOv3toZdof7AqAM7XHMGVlty 8aeUKTrBhUb0f9/ouL+GLn3eYZnmJP5tCBL6E= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=e/jzQbg518U2caCsmQ770SAl6OPkXSCjI90yHaw9UGymBlnQT4hmNeUemTq57A3thS FykwmZFhWeMx70zjAECmkAU/FlSG+AfP095geUu+xPYoGWn5gR7t2gU91G4pg+P5+nwe 5IrRZliRfmnXdb6msAhe+aPik3toCEpgfUE9s= Received: by 10.114.148.2 with SMTP id v2mr19752948wad.26.1231790964488; Mon, 12 Jan 2009 12:09:24 -0800 (PST) Received: by 10.114.38.7 with HTTP; Mon, 12 Jan 2009 12:09:19 -0800 (PST) Message-ID: Date: Mon, 12 Jan 2009 13:09:19 -0700 From: "Scott Marlowe" To: Jan-Peter.Seifert@gmx.de Subject: Re: PGOPTIONS and default_tablespace Cc: pgsql-admin@postgresql.org In-Reply-To: <20090112093427.316400@gmx.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20090112093427.316400@gmx.net> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200901/33 X-Sequence-Number: 31080 On Mon, Jan 12, 2009 at 2:34 AM, wrote: > Hello, > > without success I tried to set the default tablespace via the environment variable PGOPTIONS. > > My tries: > set PGOPTIONS="default_tablespace='pgdata'" > set PGOPTIONS=default_tablespace='pgdata' > set PGOPTIONS=default_tablespace(pgdata) > set PGOPTIONS=default_tablespace('pgdata') > > When I try to connect to the server via psql I get the error message: "FATAL: invalid command-line arguments for server process. HINT: Try "postgres --help" for more information." I do this one of two ways usually. Either I set the user / database to have a default tablespace permanently via alter user / database, or I put it at the top of my script I'm running. PGOPTIONS isn't really the place I think of setting it myself.