Alter Postgres Tables via metadata
(Thanks Louis R.)
select atttypmod from pg_attribute where attrelid = 'TABLE1'::regclass and attname = 'title';
# then
update pg_attribute set atttypmod = 200+4 where attrelid = 'TABLE1'::regclass and attname = 'title';
http://sniptools.com/databases/resize-a-column-in-a-postgresql-table-without-changing-data
Showing posts with label meta. Show all posts
Showing posts with label meta. Show all posts
Tuesday, April 26, 2011
Friday, November 05, 2010
Tell Browser not to cache forms on back
This works in IE and Firefox but not Chrome or Opera
<meta http-equiv="cache-control" content="no-cache"> <!-- tells browser not to cache -->
<meta http-equiv="cache-control" content="no-store">
<meta http-equiv="expires" content="0"> <!-- says that the cache expires 'now' -->
<meta http-equiv="pragma" content="no-cache"> <!-- says not to use cached stuff, if there is any -->
<meta http-equiv="cache-control" content="no-cache"> <!-- tells browser not to cache -->
<meta http-equiv="cache-control" content="no-store">
<meta http-equiv="expires" content="0"> <!-- says that the cache expires 'now' -->
<meta http-equiv="pragma" content="no-cache"> <!-- says not to use cached stuff, if there is any -->
Subscribe to:
Posts (Atom)
