postgresql-9.2 Questions
5
Solved
I switched my postgres version from 9.2.24 to 9.6 because I need jsonb compatibility along with other recent features. I am running a vm on centos 7.
I decided to wipe all existing instances of po...
Extravert asked 12/9, 2018 at 20:49
5
Solved
Is there a way I can rename all column names that are called 'location' to 'location_name' within all schemas in my PostgreSQL database?
I am fairly new to SQL and am aware there is an ALTER TABLE...
Camphorate asked 23/8, 2016 at 7:59
7
Solved
How can I declare an array like variable with two or three values and get them randomly during execution?
a := [1, 2, 5] -- sample sake
select random(a) -- returns random value
Any suggestion w...
Hagiographer asked 12/1, 2013 at 23:27
15
I am trying to open a program for the first time on Windows XP Pro that uses PostgreSQL 9. I'm getting an error message that says :
A problem was encountered while trying to log into or create t...
Nit asked 14/6, 2013 at 19:8
33
Solved
I am trying to dump a Postgresql database using the pg_dump tool.
$ pg_dump books > books.out
How ever i am getting this error.
pg_dump: server version: 9.2.1; pg_dump version: 9.1.6
pg_du...
Wastebasket asked 11/10, 2012 at 9:23
8
Is there any query available to list all tables in my Postgres DB.
I tried out one query like:
SELECT table_name FROM information_schema.tables
WHERE table_schema='public'
But this query retu...
Terbecki asked 6/2, 2013 at 13:26
3
Solved
I would like to know for "pg_stat_statements" view in postgres.
What is the timeframe for the data? Does it shows query executed in last 24 hours or overall queries executed? As the table doesn't ...
Topping asked 11/6, 2018 at 17:27
12
What is the command to find the size of all the databases?
I am able to find the size of a specific database by using following command:
select pg_database_size('databaseName');
Thoroughgoing asked 20/9, 2013 at 0:22
13
Solved
I tried to run simple SQL command:
SELECT * FROM site_adzone;
And I got this error:
ERROR: permission denied for relation site_adzone
What could be the problem here?
I tried also to do select fo...
Arcade asked 20/3, 2013 at 10:0
3
I am having a problem changing the data directory on postgresql 9.2 on windows7:
i`m trying to change my data directory:
how can i change data directory on postgreSQL with pgAdmin?
Airwaves asked 23/3, 2014 at 19:57
5
Solved
I am getting FATAL: the database system is shutting down errors while creating PostgreSQL JDBC connections to a PostgreSQL 9.2 server. The specific exception path I'm getting from JDBC is here:
Ca...
Bilbe asked 27/6, 2014 at 1:17
2
Solved
With the Play Framework 2.1
I have the following SQL defined in my evolution:
CREATE OR REPLACE FUNCTION idx(myArray anyarray, myElement anyelement) RETURNS int AS $$
SELECT i FROM (
SELECT gen...
Ureter asked 6/3, 2013 at 0:27
5
Solved
What's the CTE syntax to delete from a table, then insert to the same table and return the values of the insert?
Operating on 2 hours of sleep and something doesn't look right (besides the fact th...
Felker asked 17/6, 2015 at 21:10
2
Solved
From postgresql documentation:
RESTRICT prevents deletion of a referenced row. NO ACTION means that if any referencing rows still exist when the constraint is checked, an error is raised; this i...
Bouleversement asked 17/2, 2013 at 13:38
3
Solved
For example ,
I use the following function to convert rows into json in PostgreSQL 9.2
select row_to_json(row(productid, product)) from gtab04;
and this will returns below results
row_to_json
-...
Deflect asked 29/8, 2014 at 8:40
7
Solved
I keep getting this error when i try to run my localhost using "$rails s":
(Mac OSX 10.8.3)
(ruby 2.0.0p195 (2013-05-14 revision 40734) [x86_64-darwin12.3.0])
(Rails 3.2.11)
(psql (PostgreSQL) 9...
Stoller asked 3/6, 2013 at 20:8
5
Solved
I installed postgresql on mac using brew. I wasn't asked about for the password for postgresql during the installation. Now I need to create a user and can't:
Alexs-MacBook-Air:mydir alex$ su - po...
Cabbala asked 1/6, 2014 at 17:2
4
I have Windows Server 2003 machine on which I tried to install Postgres 9.2. At the end of the installation it pops a warning saying
Problem running post-install step. Installation may not compl...
Demesne asked 24/5, 2013 at 8:7
2
I am looking for a way to convert a postgres db schema to a JSON format data.
e.g.:
{"Table" :
{"name": "varchar(20)",
"Age" : "int"
},
}
Could someone help me with this?
Washy asked 8/3, 2014 at 17:49
4
I am using postgres 9.2.
I need to change all column name to UPPER CASE for all tables in postgres db.
Is there any way to do this??
Do i need to change any configurations in postgres?
Dulcie asked 16/1, 2013 at 5:8
4
Solved
I'm using "ALTER SEQUENCE sequence OWNED BY table.column" to change sequence association in Postgres. Is there a way to view this new information using \ds or something similar? \ds still shows the...
Thermochemistry asked 28/3, 2012 at 2:26
5
Solved
I have a column added_at of type timestamp without time zone. I want it's default value to be the current date-time but without time zone. The function now() returns a timezone as well.
How do I s...
Markle asked 28/12, 2013 at 7:21
0
I upgraded my local Postgresql test server to PostgreSQL15 today morning.
Opening pgAdmin gave me a warning that some of the features may not work correctly because I have a server with version 9 a...
Norford asked 4/1, 2023 at 7:43
12
I'm following the instructions found here.
When I try to run $ heroku pg:psql or $ heroku pg:psql HEROKU POSTGRESQL_BROWN I recieve the following error message:
! The local psql command could n...
Aeromancy asked 22/3, 2013 at 17:4
1
Facing issue with gitlab repository not available.
When accessing project form gitlab page it shows below error
No repository
The repository for this project does not exist.
This means you can n...
Sprat asked 30/1, 2018 at 9:44
1 Next >
© 2022 - 2024 — McMap. All rights reserved.