Unix Technical Forum

SEO

vBulletin Search Engine Optimization


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > Pgsql General

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-09-2008, 09:37 AM
Karen Hill
 
Posts: n/a
Default What is your favorite front end for user interaction to postgresql databases?

What is your favorite front end for end users to interact with your
postgresql db? Is it java, .net, web apache + php, MS-Access, ruby on
rails? Why is it your favorite? Which would you recommend for end
users on multiple OSes?

Also, what do you think of having the database management system do all
work (business logic etc) with the front end as a user interface vs.
having N-tier with an application server handling business logic, and
the db just accepting data. I currently have the opinion that N-tier
is not as good as having the db contain the business logic via stored
procedures. This comes from having to re-invent the wheel every time a
new user app needs to be created.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-09-2008, 09:37 AM
Kenneth Downs
 
Posts: n/a
Default Re: What is your favorite front end for user interaction

Karen Hill wrote:

>What is your favorite front end for end users to interact with your
>postgresql db? Is it java, .net, web apache + php, MS-Access, ruby on
>rails? Why is it your favorite? Which would you recommend for end
>users on multiple OSes?
>
>

I use PHP for the same reason I use Postgres, easy, powerful, and free.

>Also, what do you think of having the database management system do all
>work (business logic etc) with the front end as a user interface vs.
>having N-tier with an application server handling business logic, and
>the db just accepting data. I currently have the opinion that N-tier
>is not as good as having the db contain the business logic via stored
>procedures. This comes from having to re-invent the wheel every time a
>new user app needs to be created.
>
>

Agreed. I like to have the database do all of the work, and I like to
use a dictionary-based generator to build the triggers for me.

Shameless plug: My own project, Andromeda, which does just this, is a
GPL project using PHP and PostgreSQL which works as you describe.
http://docs.secdat.com. I consider the project late-beta for my own
projects, but probably early Alpha for others, since there are probably
foibles that don't bother me because I wrote it and know where they are.


---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-09-2008, 09:37 AM
Casey Duncan
 
Posts: n/a
Default Re: What is your favorite front end for user interaction to postgresql databases?

On May 8, 2006, at 3:33 PM, Karen Hill wrote:

> What is your favorite front end for end users to interact with your
> postgresql db? Is it java, .net, web apache + php, MS-Access, ruby on
> rails? Why is it your favorite? Which would you recommend for end
> users on multiple OSes?


This is totally dependent on the individual user's preference:

- Many users comfortable with command line shells prefer psql (this
is my choice).
- Others who like a gui might use pgAdmin (or miriad others)
- If interoperability with MSOffice is your main concern, I could see
Access/ODBC being useful. As a general front-end, probably not.

When you start talking about java v. .net v. php vs. ruby, that's a
whole other ball of wax. That's a lot less about interaction, or even
about databases and a lot more about programmer preference.
Personally, I would recommend:

Python + psycopg (highly interactive, great for complex scripts or
even apps)
Java + JDBC + Hibernate (I think JDBC sucks, but Hibernate totally
rocks and more or less hides it from you)
Shell + psql (great for simple reporting, automating dba tasks, etc.
etc)

> Also, what do you think of having the database management system do
> all
> work (business logic etc) with the front end as a user interface vs.
> having N-tier with an application server handling business logic, and
> the db just accepting data. I currently have the opinion that N-tier
> is not as good as having the db contain the business logic via stored
> procedures. This comes from having to re-invent the wheel every
> time a
> new user app needs to be created.


From personal experience (and others will disagree), I find putting
logic in the database to be a bad idea. I only use stored procedures
for triggers and the like, and I try to avoid those whenever possible.

Here are my reasons why:

- I don't like the PL/pgSQL language (yes there are alternatives, but
they have their own drawbacks)
- It's complex to test and upgrade (we actually wrote non-trivial
infrastructure to automate both)
- It's difficult to debug (compared to external languages like python
or java)
- It's difficult to profile, therefore getting good performance can
be difficult

I had a very complex system coded in stored procedures that performed
poorly and was hard to maintain. It's now refactored into java/
hibernate code that's simpler to understand, performs much better and
is easy to extend and maintain. Of course that's just my particular
case and obviously YMMV.

Stored procs could make a lot of sense if you have many different
clients accessing the db in different ways and you want to strictly
enforce business rules across all of them. I had no such requirements
in my case.

In any case I would strongly recommend doing the simplest thing that
you can get away with. If your business rules can be fulfilled with
grants, views and constraints alone, use them.

-Casey

---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
choose an index scan if your joining column's datatypes do not
match

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-09-2008, 09:37 AM
Guido Neitzer
 
Posts: n/a
Default Re: What is your favorite front end for user interaction to postgresql databases?

On 09.05.2006, at 0:33 Uhr, Karen Hill wrote:

> What is your favorite front end for end users to interact with your
> postgresql db? Is it java, .net, web apache + php, MS-Access, ruby on
> rails? Why is it your favorite? Which would you recommend for end
> users on multiple OSes?


You mean what technology to use to build business logic?

<advertisement>

It just depends on your needs. I prefer to use Apple WebObjects for
building web frontends to the db.

Why? Because it is extremely powerful, free if you are able to
develop on Mac OS X (it comes with the developer tools) and even if
you have to buy a couple of Powerbooks and Xserves it may be cheaper
then only the software license for one of the other big Java
application server technologies. You can deploy it to every Java
plattform because it's just a Java application, but it's build on and
for Mac OS X. It completely frees you from thinking in tables, joins,
selects and other sql stuff, well, at least nearly completely. I can
switch my whole application including a couple of hundred MB database
content in half a day (mostly the time to transfer the data) - I have
done this two months ago from another dbms to PostgreSQL.

It's just as "cool" as Ruby on Rails right now, not as fat and slow
in development as most J2EE servers, you can deploy everywhere, I can
develop on Mac OS X (yes, that's a reason for me, because it speeds
up my work by a good percentage), it is extremely fast for
development once you have the concepts and a good set of your own
components in stock which you are used to. It's pure Java, so I can
easily include third party tools like Lucene or others. It does one
connection per application instance which keeps concurrent db tasks
low. Also it has more than one working approach for multi language /
internationalized applications.

And, most important, it has a tool, which enables me to do things
alone in days, other teams do in weeks with other J2EE tools:
DirectToWeb - a rule and template driven dev plattform. You write the
db schema, lots of "rules" how list, inspect, edit and search pages
should look like and some basic html for wrappers and you can create
an administration application faster as with everything I've seen so
far. Including Ruby on Rails, PHP and other Java tools. But, to make
this clear: the starting point to use it is VERY high. I had a
couple of years doing WebObjects development when I started using D2W
and it was good to have this background.

Also you can build WebServices, rich Java client apps, can use Ajax
for rich web applications and I have a tool that proved it's
scalability, reliability and ease of use in a real high volume
environment: the iTunes Music Store.

For more information, send me an email and/or go to <http://
www.apple.com/webobjects>. (I hope the url is correct, I'm not online
right now - sitting in the train to work .... ;-))

Ah, and if you download it for testing: go to one of the WO mailing
lists and ask for some good tips for starters. It will help.

</advertisement>

> Also, what do you think of having the database management system do
> all
> work (business logic etc) with the front end as a user interface vs.
> having N-tier with an application server handling business logic, and
> the db just accepting data.


I prefer the second approach because it frees me from one specific
database. I can use Oracle, PostgreSQL, MySQL, FrontBase, OpenBase,
Sybase, MSSQL without changing one line of code (if I have avoided
using custom SQL, which I mostly do) by just switching one framework.
Okay, right, there are always some problems you have to solve, but
they are nothing compared to what a PHP developer has to do to use
different dbms as the one he develops on.

> This comes from having to re-invent the wheel every time a
> new user app needs to be created.


You do something wrong if you don't build libraries of your basic and
generic work over the time. This has nothing to do with the tool you
use or the underlying dbms - it's just bad coding style if you have
to re-invent the wheel for every app.

For me and our customers it's more important to be able to switch the
dbms than the application server.

But, as with everything: YMMV.

Ah, and for curiosity I'm just evaluating Ruby on Rails: it has
interesting ideas and places itself somewhere between the fat J2EE
app servers and the scripting languages PHP and Perl. It is more
closely placed to WebObjects then I have thought on the first look,
but is a bit easier to learn and not the big 800 pound gorilla of web
development, with hooks, tool, templates, ideas and concepts for
nearly every case.

But in my opinion it lacks a couple of things, two of the most
important for me are complete abstraction from the db (you may reach
this with easy schemas and generic sql but not enough) and a working
internationalization approach. It is lightweight and it would be
interesting to build an application with it. Perhaps, if I have
something with a smaller db schema (under 30 tables) I will try it.

cug



---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 04-09-2008, 09:38 AM
Steve Atkins
 
Posts: n/a
Default Re: What is your favorite front end for user interaction to postgresql databases?


On May 8, 2006, at 11:05 PM, Guido Neitzer wrote:

> On 09.05.2006, at 0:33 Uhr, Karen Hill wrote:
>
>> What is your favorite front end for end users to interact with your
>> postgresql db? Is it java, .net, web apache + php, MS-Access,
>> ruby on
>> rails? Why is it your favorite? Which would you recommend for end
>> users on multiple OSes?

>
> You mean what technology to use to build business logic?
>
> <advertisement>
>
> It just depends on your needs. I prefer to use Apple WebObjects for
> building web frontends to the db.
>
> Why? Because it is extremely powerful, free if you are able to
> develop on Mac OS X (it comes with the developer tools) and even if
> you have to buy a couple of Powerbooks and Xserves it may be
> cheaper then only the software license for one of the other big
> Java application server technologies. You can deploy it to every
> Java plattform because it's just a Java application


Is that actually true? My understanding was that under the most recent
license changes it was not possible to deploy it to any platform other
than XServe. Technically possible, sure, but a violation of the license.
That's the main reason I stopped considering it a viable development
environment.

Cheers,
Steve

---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?

http://archives.postgresql.org

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 04-09-2008, 09:38 AM
Reid Thompson
 
Posts: n/a
Default Re: What is your favorite front end for user interaction

Steve Atkins wrote:
>
> On May 8, 2006, at 11:05 PM, Guido Neitzer wrote:
>
>> On 09.05.2006, at 0:33 Uhr, Karen Hill wrote:
>>
>>> What is your favorite front end for end users to interact with your
>>> postgresql db? Is it java, .net, web apache + php, MS-Access, ruby on
>>> rails? Why is it your favorite? Which would you recommend for end
>>> users on multiple OSes?

>>
>> You mean what technology to use to build business logic?
>>
>> <advertisement>
>>
>> It just depends on your needs. I prefer to use Apple WebObjects for
>> building web frontends to the db.
>>
>> Why? Because it is extremely powerful, free if you are able to
>> develop on Mac OS X (it comes with the developer tools) and even if
>> you have to buy a couple of Powerbooks and Xserves it may be cheaper
>> then only the software license for one of the other big Java
>> application server technologies. You can deploy it to every Java
>> plattform because it's just a Java application

>
> Is that actually true? My understanding was that under the most recent
> license changes it was not possible to deploy it to any platform other
> than XServe. Technically possible, sure, but a violation of the license.
> That's the main reason I stopped considering it a viable development
> environment.
>
> Cheers,
> Steve
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Have you searched our list archives?
>
> http://archives.postgresql.org

from http://developer.apple.com/softwarel...ebobjects.html


WebObjects Distribution License

*WebObjects Distribution License
$699 per copy*

WebObjects, the premier web application server used by hundreds of
corporations, is now available for redistribution by web application
developers just like you.

Upon signature by Apple, the agreement, together with payment for your
initial request of licenses, allows you to resell WebObjects license
keys, and redistribute the WebObjects deployment runtime and adaptors as
part of your web application. The WebObjects runtime includes a powerful
object-relational engine for extracting and managing data from virtually
any database, without writing a single line of SQL. Its HTML component
model makes it a breeze to assemble dynamic, fully customizable web
pages. There’s even support for rich Java clients and Web services.



---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 04-09-2008, 09:38 AM
Guido Neitzer
 
Posts: n/a
Default Re: What is your favorite front end for user interaction to postgresql databases?

On 09.05.2006, at 16:31 Uhr, Steve Atkins wrote:

> Is that actually true? My understanding was that under the most recent
> license changes it was not possible to deploy it to any platform other
> than XServe.


Wrong. You are allowed to deploy on any platform you like, but only
Mac OS X Server is officially supported by Apple.

Please note that this is for 5.3.1 - there was a bad license
formulation in 5.3 which actually did not allow the deployment. For
5.3.1 this was corrected. The issue came up when WebObjects was
released free as part of the Xcode tools and a new license was
necessary which wasn't well written.

> Technically possible, sure, but a violation of the license.


Nope. Cliff Tuel of Apple clarified this on the WO mailing lists.

cug

---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
choose an index scan if your joining column's datatypes do not
match

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 04-09-2008, 09:38 AM
Guido Neitzer
 
Posts: n/a
Default Re: What is your favorite front end for user interaction

On 09.05.2006, at 16:52 Uhr, Reid Thompson wrote:

> *WebObjects Distribution License
> $699 per copy*
>
> WebObjects, the premier web application server used by hundreds of
> corporations, is now available for redistribution by web
> application developers just like you.
>
> Upon signature by Apple, the agreement, together with payment for
> your initial request of licenses, allows you to resell WebObjects
> license keys, and redistribute the WebObjects deployment runtime
> and adaptors as part of your web application. The WebObjects
> runtime includes a powerful object-relational engine for extracting
> and managing data from virtually any database, without writing a
> single line of SQL. Its HTML component model makes it a breeze to
> assemble dynamic, fully customizable web pages. There’s even
> support for rich Java clients and Web services.


This is for WO 5.2.4. WO 5.3.1 (current release) is free for
development on Mac OS X and free for deployment on any chosen platform.

cug



---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 04-09-2008, 09:45 AM
Jim C. Nasby
 
Posts: n/a
Default Re: What is your favorite front end for user interaction to postgresql databases?

On Mon, May 08, 2006 at 04:17:53PM -0700, Casey Duncan wrote:
> From personal experience (and others will disagree), I find putting
> logic in the database to be a bad idea. I only use stored procedures
> for triggers and the like, and I try to avoid those whenever possible.
>
> Here are my reasons why:
>
> - I don't like the PL/pgSQL language (yes there are alternatives, but
> they have their own drawbacks)


Huh? Just use whatever language you're already writing in.

> - It's complex to test and upgrade (we actually wrote non-trivial
> infrastructure to automate both)


Uhm... CREATE OR REPLACE FUNCTION. Unless you're changing parameters it
works fine.

As for testing, I fail to see how it's more difficult than testing the
same thing using external code. I will grant that unit testing is harder
though, since you don't have as many opportunities to hook into the
code, but if you create a set of known test data it's not all that
difficult.

> - It's difficult to debug (compared to external languages like python
> or java)
> - It's difficult to profile, therefore getting good performance can
> be difficult


Actually, I think there's a commercial product that allows you to do
both, but I'm not sure. It would certanly be nice if it was built in.

> I had a very complex system coded in stored procedures that performed
> poorly and was hard to maintain. It's now refactored into java/
> hibernate code that's simpler to understand, performs much better and
> is easy to extend and maintain. Of course that's just my particular
> case and obviously YMMV.


If hibernate is performing better it's due to application design. A lot
of times people try and approach database development the same way you'd
approach procedural coding, which is a bad idea. Hibernate and other
products go to great lengths (ie: caching) to try and make procedural
coding techniques work well on databases.

> Stored procs could make a lot of sense if you have many different
> clients accessing the db in different ways and you want to strictly
> enforce business rules across all of them. I had no such requirements
> in my case.


You sure there won't every be any other apps hitting that database?
Part of how Pervasive makes money is dealing with exactly that kind of
attitude... "nothing else will ever have to communicate with this
system".

> In any case I would strongly recommend doing the simplest thing that
> you can get away with. If your business rules can be fulfilled with
> grants, views and constraints alone, use them.


Or maybe more accurately, do what you have the expertise for. If you've
got a good database developer on staff there's a lot to be said for
putting stuff into procedures, especially if it's database-intensive.
--
Jim C. Nasby, Sr. Engineering Consultant jnasby@pervasive.com
Pervasive Software http://pervasive.com work: 512-231-6117
vcard: http://jim.nasby.net/pervasive.vcf cell: 512-569-9461

---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?

http://archives.postgresql.org

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:08 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
UnixAdminTalk.com

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479