473,387 Members | 1,724 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

No phpPgAdmin delete or edit links when browsing

I am not sure if I should post this here or in a potgre group, but I
will start here. I recently got a new server and thus when I copied
all the files to the new machine, I logically decided to upgrade
everything to the newest versions. So my postgre got upgraded from
7.4 to 8.1 and my phpPgAdmin also got upgraded. Now though, I am only
able to use the edit/delete buttons on some of the tables when
browsing. I am not sure what is the difference between the tables
that allows or disallows these buttons to be there. Is it at all
possible to get these buttons back? (originally on the other server,
all tables had these buttons). The only thing I can think of is that
there is a configuration setting that needs to be changed or that
something in the conversion process between 7.4 to 8.1 changed
something. The version of phpPgAdmin I have is 4.0.1

An help anyone can provide me for this would be greatly apreciated.
Let me know if you think this is a postgre problem and I will instead
post in that group.

Thank you,
Daniel
Jan 23 '08 #1
3 2838
Dan99 wrote:
Would it be enough to do something like SELECT * INTO table2 FROM table
WITH OIDS
I've not tried that, but I imagine it will work. Relying on OIDs isn't a
great idea though, because:

a) they're a non-standard feature of PostgreSQL, so if you need
to move to a different database, you won't be able to use
them; and

b) PostgreSQL seems to be phasing them out, so if you *don't* move
to a different database, you may not be able to use them in the
future.

--
Toby A Inkster BSc (Hons) ARCS
[Geek of HTML/SQL/Perl/PHP/Python/Apache/Linux]
[OS: Linux 2.6.17.14-mm-desktop-9mdvsmp, up 25 days, 2:38.]

CSS to HTML Compiler
http://tobyinkster.co.uk/blog/2008/01/22/css-compile/
Jan 24 '08 #2
On Jan 24, 10:28 am, Toby A Inkster <usenet200...@tobyinkster.co.uk>
wrote:
Dan99 wrote:
Would it be enough to do something like SELECT * INTO table2 FROM table
WITH OIDS

I've not tried that, but I imagine it will work. Relying on OIDs isn't a
great idea though, because:

a) they're a non-standard feature of PostgreSQL, so if you need
to move to a different database, you won't be able to use
them; and

b) PostgreSQL seems to be phasing them out, so if you *don't* move
to a different database, you may not be able to use them in the
future.

--
Toby A Inkster BSc (Hons) ARCS
[Geek of HTML/SQL/Perl/PHP/Python/Apache/Linux]
[OS: Linux 2.6.17.14-mm-desktop-9mdvsmp, up 25 days, 2:38.]

CSS to HTML Compiler
http://tobyinkster.co.uk/blog/2008/01/22/css-compile/
I know this is starting to get way off of php, but you sound like you
know what you are talking about so I hope you dont mind helping me out
a bit more. Changing the config file worked good for creating new
tables with the oids, but I want to replicate all the existing tables
so that they have oids. I ran the following query on a test table
that does not have OIDs after changing the config:
SELECT * INTO table2 FROM table
This works well except for the fact that it doesnt copy anything but
the data. For example any indexes, constraints, or triggers do not
copy to the new table? How would I go about making an exact duplicate
of a table?

Thanks again,
Daniel
Jan 24 '08 #3
Dan99 wrote:
SELECT * INTO table2 FROM table
This works well except for the fact that it doesnt copy anything but the
data. For example any indexes, constraints, or triggers do not copy to
the new table? How would I go about making an exact duplicate of a
table?
CREATE TABLE foo (LIKE bar INCLUDING DEFAULTS INCLUDING CONSTRAINTS);
INSERT INTO foo SELECT * FROM bar;

This will copy the table structure, data and constraints, but not indexes
or triggers. If you want to make sure that indexes and triggers are
copied, probably the best route is to use the pg_dump backup tool that
comes with PostgreSQL to dump the table in its entirety to a flat SQL
file, which can then be opened with a text editor to change the table name
and then restored.

I suggest continuing this discussion in comp.databases.postgresql.

--
Toby A Inkster BSc (Hons) ARCS
[Geek of HTML/SQL/Perl/PHP/Python/Apache/Linux]
[OS: Linux 2.6.17.14-mm-desktop-9mdvsmp, up 22:33.]

Looking Ahead to PHP 6
http://tobyinkster.co.uk/blog/2008/01/29/php6/
Jan 30 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: 7 | last post by:
I installed postgres and phppgadmin debian unstable (on ProMepis RC4) but I can't seem to access it. I type http://localhost/phppgadmin and it says file not found. Look in /var/www and sure...
3
by: CSN | last post by:
In phppgadmin, primary keys are added/shown under "constraints". Does creating a primary key automatically create an index? No indexes are listed under phppgadmin's indexes page, but "\d table" in...
2
by: eClaire | last post by:
Hello, I'm new in this list. First, scuse me for my not very good english and please speak me in simple words ;) I had install postgresql on my debian, no problem. I have too phppgadmin and...
1
by: Daniel Secomb | last post by:
Hi, I'm using PostgreSQL 7.3.4 with phpPgAdmin 2.4.2 and the ".sql" file I'm trying to import came from a dump from a server running PostgreSQL 7.0.3. I just got this error message trying to...
2
by: Eric | last post by:
Hi, My webserver work in PHP4, safemode and it's running for years. I use Debian, kernel 2.6 since yesterday. I install psotgreSQL and PHPPGADMIN from apt-get (in .deb package) like always...
3
by: Chris Green | last post by:
I'm not sure if this is really on topic for this list but I'll start here. I'm trying to run phpPgAdmin, I've installed version 3.5, I have postgresql version 7.4.3 running on slackware 9.1. ...
6
by: polocar | last post by:
Hi, I'm writing a program in Visual C# 2005 Professional Edition. This program connects to a SQL Server 2005 database called "Generations" (in which there is only one table, called...
6
by: John Grandy | last post by:
Does how to delete all of IE's browing history from the command line ? Same as Tools Internet Options Browsing History Delete Delete all... What I'd like is a .bat file.
0
by: jm | last post by:
I have a gridview. Can the edit and delete links be denied and allowed by user? Thank you.
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.