Displaying 20 results from an estimated 6000 matches similar to: "help using unless in exec for postgres database creation"
2009 Jun 23
1
[PATCH server] added ovirt-wait4service and invokation in installer to wait for psql/ldap
FIXME this patch isn't complete, still need to figure out the ldap command to
wait for that service, something along the lines of:
ldapsearch -b dc=priv,dc=ovirt,dc=org -x
(but how will we parse the base from the installer? also this cmd
fails, how to fix?)
---
installer/modules/ovirt/manifests/ovirt.pp | 8 +++++-
installer/modules/ovirt/manifests/postgres.pp | 13 ++++++---
2007 Feb 06
1
Postgres, testing and maybe spurious database DROPpings?
Folks,
I don''t like that I have to grant CREATEDB rights to the test user to
get testing working smoothly with Postgres.
What is the philosophical reason that Rails wants to drop and recreate
databases during the testing? It would seem to me that "pg_dump -c" (the
"clean" dump option, similar to mysqldump''s --add-drop-tables ) would
suffice when
2009 Aug 21
1
[PATCH server] update installer exec items to single_exec where applicable
Signed-off-by: Joey Boggs <jboggs at redhat.com>
---
installer/modules/ovirt/manifests/freeipa.pp | 8 ++++----
installer/modules/ovirt/manifests/postgres.pp | 12 ++++++------
2 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/installer/modules/ovirt/manifests/freeipa.pp b/installer/modules/ovirt/manifests/freeipa.pp
index e5de852..f91cd43 100644
---
2005 Mar 06
3
permission error in rake''s clone_structure_to_test
Hello,
When I try to run "rake clone_structure_to_test" on my project, I get
the following errors:
$ rake clone_structure_to_test
(in /home/www/cedscreening)
psql:db/development_structure.sql:8: ERROR: permission denied to set
session authorization
psql:db/development_structure.sql:16: ERROR: permission denied for
schema public
psql:db/development_structure.sql:34: NOTICE: CREATE
2003 Feb 09
1
postgres/R access problems
Hello
I have a problem that has exhausted my ingenuity and would like pointers
to a solution, or at least where to debug.
- I am using R and postgresql.
- I have databases on two different servers.
- I have a few users, who use different client machines - whose R
installations are identical (rsync'd)
>From one client machine I can access databases on both servers, using
both psql and by
2005 Oct 28
3
PostgreSQL. Multiply schemas in one database. How to?
Hi all.
I am using PostgreSQL in my current project and I have couple of questions
on this topic.
Previously I have used 3 databases for project. i.e.
megaproject_development, megaproject_test and megaproject_development.
But I don''t like this variant because of ''rake dump_db_structure'' writes a
lot of PostgreSQL specific data for structure file (operators, functions,
2007 Jun 03
1
postgres gem -- LoadError
I''m at a loss to explain why the postgres gem will not work on my new
server. I''ve gotten it working on several other servers in the past.
The major difference between then and now is that I''m using a newer
version of PostgreSQL. 8.x as opposed to 7.x.
=== Server setup
OS: Fedora Core 6
(Commands shown with "$" are performed as the same user that mongrel
2007 May 11
1
postgres erros on RHEL 4
Hi All,
I set up posgresql on RedHat El4. Below are rpms I installed.
[root at LinuxBox etc]# rpm -qa |grep postgres
postgresql-libs-7.4.16-1.RHEL4.1
postgresql-devel-7.4.16-1.RHEL4.1
postgresql-7.4.16-1.RHEL4.1
postgresql-python-7.4.16-1.RHEL4.1
postgresql-server-7.4.16-1.RHEL4.1
Then, I did below commands to create a user and a database.
[root at box root]# su postgres
bash-3.1$ createuser
2004 Jun 20
0
Modified Prepaid database
Hi all,
I've compiled and start the modified prepaid with postgresql. I would like to ask if anyone can give me a sample account to be populate in the database.
I also want to confirm if this correct. I created a database prepaid (createdb prepaid) and from the asterisk-prepaid(current modified prepaid application) database folder, I execute (psql prepaid < prepaid.sql, psql prepaid <
2005 Mar 07
1
postgres unit testing in 0.10.1
http://dev.rubyonrails.com/changeset/856
looks to me like it''s not going to work, since there''s no way of
specifying a password to pg_dump/dropdb/createdb.
If you set PGPASSWORD in your environment it might work, but that''s not
documented anywhere and isn''t done automatically in the Rakefile.
See
http://thread.gmane.org/gmane.comp.lang.ruby.rails/3693
for
2006 Feb 13
8
postgres and rake
am in a bit of a quandry...
I have asked postgresql-users list and haven''t gotten anything to work
with...
> > How do I change the owner of a schema?
> >
> > ALTER SCHEMA "public" OWNER to "some_user"; #?
>
>
http://www.postgresql.org/docs/current/interactive/sql-alterschema.html
>
> The docs explain this very situation. HTML
2005 Dec 17
3
Can scaffold generate listboxes in views? I''ve been unsuccessful.
I''ve created several different Rails applications but I''m running
into the same trouble with each one. Lets say I create an app called
Test. I type ''rails test'' and it generates the directory for me.
Now I edit my database.yml file. Then I create a database with
Postgresql by typing createdb test. Now I go into Postgresql by
typing ''psql
2008 Jan 14
2
cant install psql adapter for rails 2.0
hello list,
i set up a new rails instance with the new rails 2.0 lib.
i installed rails 2.0 over my earlier version of rails where is add
postgres support
via gem install postgres
so the error with postgres appears if i set up the database with rake
db:create:all
the following message appears:
rake aborted!
Please install the psql adapter: `gem install activerecord-psql-
adapter` (no such file
2007 Apr 10
2
postgres 7 - CentOS 4.4
Hi
Firstly apologies but i have to install an app that uses postgres but i
am more a MySQL/Oracle guy so i maybe doing something really wrong here..
I am following instructions for creating a DB user and encountering this
# createuser -ADP -U postgres foo
Enter password for new user:
Enter it again:
createuser: could not connect to database template1: FATAL: IDENT
authentication failed for
2009 Feb 27
1
R_CHAR + 21 (memory.c:2573) in crash report...
I'm not sure if this is the best subject line, and I apologize in
advanced for the cross-posting, but I've been trying to get past a piece
of code for two days now, and seem to have narrowed where a show
stopping crash is occurring...
I keep getting:
psql:../sql/schedpak.sql:257: server closed the connection unexpectedly
This probably means the server terminated abnormally
before or
2016 Nov 03
2
how to install postgresql ip4r
ok, so I removed the default postgresql install and installed it from
the software collections..
following the instructions at
https://www.softwarecollections.org/en/scls/rhscl/rh-postgresql95/
and I get this
[root at home1p /home/jason]$scl enable rh-postgresql95 bash
[root at HOME1P jason]# postgresql-setup --initdb
* Initializing database in
2006 Apr 03
2
problems testing on 1.1 and postgresql
Hi,
I get errors doing this:
1) createdb myapp_test
2) rake db:test:clone_structure
3) rake test:units
rake aborted!
PGError: ERROR: relation "matches" already exists
I''m using the :sql schema format because there are some problems with
postgres and the :ruby schema format
config.active_record.schema_format = :sql
It seems rake test:units is trying to create the tables
2010 Mar 04
2
exec failure
Hello,
I''m using puppet 0.25.1 - and I''m trying to create a custom resource to
use launchctl to stop a launchd job.
command => "launchctl stop `launchctl list | grep $job_real | cut -f 3`",
yeilds:
err:
//sav/Stop_launchd_job[com.Symantec.SymSecondaryLaunch]/Exec[com.Symantec.SymSecondaryLaunch]/returns:
change from notrun to 0 failed: launchctl stop `launchctl
2013 May 14
1
PuppetDB Cannot Find Postgresql Driver
Puppet 3.3.1 // CentOS release 6.4 (Final)
rpm -qa | grep puppet
puppetlabs-release-6-7.noarch
puppet-3.1.1-1.el6.noarch
puppetdb-1.3.0-1.el6.noarch
puppet-server-3.1.1-1.el6.noarch
puppetdb-terminus-1.3.0-1.el6.noarch
Installed from yum packages:
Running Transaction
Installing : puppetdb-1.3.0-1.el6.noarch
2008 Dec 05
0
test:clone_structure problems with Postgres
(in C:/projects/books/TheatreTickets)
** Invoke db:test:clone_structure (first_time)
** Invoke db:structure:dump (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute db:structure:dump
** Invoke db:test:purge (first_time)
** Invoke environment
** Execute db:test:purge
** Execute db:test:clone_structure
psql:db/development_structure.sql:15: ERROR: language