Once you have exported a few datasets using ogr2ogr, you can see that exporting to other formats is a very similar process. The most important thing is to remember to consult the data set creation options for the format-specific options that may affect the export. In this case, we'll use the -dsco FORMAT in order to output the MIF in our second example. We will first deal with the TAB export (made of four files: DAT, ID, MAP, and TAB):
ogr2ogr -f "MapInfo File" greenwich_park_1.tab PG:"host=localhost port=5434 user=postgres dbname=mastering_postgis" public.planet_osm_line
Now we'll export to MIF (composed of two files: MIF and MID):
ogr2ogr -f "MapInfo File" greenwich_park_2.mif PG:"host=localhost port=5434 user=postgres dbname=mastering_postgis" -dsco FORMAT=MIF public.planet_osm_point